generate random alphabetic string in javascript code example Example: random alphabet javascript Math.random().toString(36).substr(2, 5);