Message from JavaScript discussions

January 2018

— Syntax error)

— 

function theBeatlesPlay(artists, instruments) {
console.log(
artists[0] +
" plays " +
instruments[0]
);
}

theBeatlesPlay([
"Beatles",
"Agulero",
"Michael Jackson"
], [
"Guitar",
"Musical",
"Piano",
"Fortopiano"
]);

— Yeah but I have to use for loop

— By creating empty array var

— This is argument destructuring

— Like so: var arr = [" "];

— Right...

— Is this homework?

— And get that arr later

— Yeah its my homework

— Heh, you need to read up on general JavaScript

— Use some MDN examples