generate random string with javascript





I want to generate a random string that has to have 5 letters from a-z and 3 numbers. How can I do this with javascript? We have learned about a random generation of numbers in Javascript Lesson 14.Each string is identified by a subscript, by randomizing the subscripts we can then generate random strings based on their subscripts. The function which generates the random string can be called from any event handler - the example below uses a button. Step 1.