I want to pass several variables to a function, but my solution is not working. (hope I used the right terms) Here is an example:
function newFunc(color) {
console.log('my fav color is' + color)
} newFunc('blue', 'black', 'green');
I want to get three console entries.
my fav color is blue
my fav color is black
my fav color is green
What's the correct syntax for this?