im a early student and im trying to learn Javascript by myself since in university i only have C. As a side-project im trying to do a password generator, i want to know what are viable ways of generating a random array with elements of other already declared arrays. In other words, i have these arrays:
let upperCase = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] ;
let underCase = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] ;
let numbers = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] ;
how would you approach this in Javascript? is it correct to just google some fusion function which mixes everything up or is there a better way? Take in mind that i should be able to constantly press this button and get a new array. They’re in different arrays because i want to add the function to choose whether the password has uppercase/numbers/symbols or not.