1var characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
2var result = ""
3var charactersLength = characters.length;
4
5for ( var i = 0; i < 5 ; i++ ) {
6 result += characters.charAt(Math.floor(Math.random() * charactersLength));
7}
8
9console.log(result)