Computer scienceProgramming languagesJavaScriptWorking with dataArrays

Array iterating

Empty forEach

Report a typo

What is going to be logged into the console?

let myarray = [];
myarray[1] = 'Hello';
myarray[4] = 'World';

myarray.forEach(function (item) {
    console.log(item);
});
Select one option from the list
___

Create a free account to access the full topic