Currently on a code submission website and it won't let me move forward.
Using this characters array, print to the console every character which name begins with ‘M’. Don’t use any kind of loop, yet.
var filmCharacters = [ ['Vito', 'Michael', 'Sonny', 'Freddo'], ['Mia', 'Vincent', 'Jules', 'Butch'], ['Bella', 'Edward', 'Jacob', 'Carlisle'], ['James', 'M', 'Moneypenny', 'Felix'] ];
my latest try is
for (var i = 0; i < filmCharacters.length; i++) {
for (var j = 0; j < filmCharacters[i].length; j++) {
if (filmCharacters[i][j].startsWith('M')) {
console.log(filmCharacters[i][j]);
}
}
}