I want to generate random strings of desired length. How do to that in Javascript?
You can create a random string of desired length as shown below:
let strLength = 10; console.log(Math.random().toString(20).substr(2, strLength));
Run here https://onecompiler.com/javascript/3xns846n4