Basic JavaScript - Nesting For Loops

Hi there,
Here is my code so far, but I can’t work out why it’s not working?! Any help would me much appreciated.

Thank you,

function multiplyAll(arr) {
  let product = 1;
  // Only change code below this line

for (let i = 0; i < arr.length; i++) {
  for (let j = 0; j < arr[i].length; j++) {
  
  product *= arr[i][j]);
  
}

  // Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Nesting For Loops

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.