What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-07 00:42:10
quick sort in javascript
function quicksort(array) { if (array.length <= 1) { return array; } var pivot = array[0]; var left = []; var right = []; for (var i = 1; i < array.length; i++) { array[i] < pivot ? left.push(array[i]) : right.push(array... Add solution -
Javascript 2021-10-12 18:38:06
get console javascript
//What you can do is hook the console.log function so that you store when it logs : console.stdlog = console.log.bind(console); console.logs = []; console.log = function(){ console.logs.push(Array.from(arguments)); console.stdlog.apply(console, ar... Add solution -
Javascript 2021-09-20 23:30:03
Convert a string to numbers in an array and define by even and odd values
// Convert a string to numbers in an array and define by even and odd values function reverseOdd(str) { let odd = []; let even = []; let arrayStr = str.split(" ").map(function(element){return element.length;}); for (var i = 0; i < array... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5