I have this problem regarding a list of an array I want to basically return a random name inside the array list but I'm having a problem do it.
`\`function randomName(names) {
names = \["john", "Ben", "Jenny", "Michael", "Chloe"\];
Math.random(names.length);
console.log(names);
return names + "is going to buy lunch today!";
}
randomName();
I want the output to be
Michael (or any name in the array) is going to buy lunch today!
could somehow guide me on how I can do this.