how to make fake binary
function fakeBin(x) {
return x.replace(/\d/g, d => d < 5 ? 0 : 1);
}
// for code wars lol
Also in JavaScript:
- angular lifecycle hooks
- hwo to cehck req header in js
- jquery direct window print pdf
- count number of each element in array javascript
- how to check if an element exists in an array of objects js
- vue get height of element ref
- how to remove an object from array in react native
- capturar el valor de un input con jquery
- JavaScript that executes after page load
- javascript convert comma separated string to array
- updating nested attributes js
- vanilla js http server
- javascript decimal to string
- status discored jks
- javascript lowercase
- javascript change url hash
- document.querySelector
- lambda expressions
- reactjs update state example
- task :app:mergedexdebug failed react native
- vowels consonants javascript
- angular.min.js version
- empty textarea using jquery
- loop through object js