Generating a random string using JavaScript
Here's a quick and elegant way of generating a random string in JavaScript:
[...Array(10)].map(i=>(~~(Math.random()*36)).toString(36)).join('')
Here's a quick and elegant way of generating a random string in JavaScript:
[...Array(10)].map(i=>(~~(Math.random()*36)).toString(36)).join('')