7 Killer JavaScript One-Liners that you must know
Generate Random String
if you will ever need a temporary unique id for something. this
one-liner will generate a random string for you
const randomString = Math.random().toString(36).slice(2);
console.log(randomString); //output- r0zf1xfqcr (the str...
kamran.hashnode.dev2 min read