JavaScript code window.onload = function() { let newtext = ""; let nums = new Array(1, 6, 2, 9, -3); nums[2] = 42; newtext += ""; for (var i=0; i" + nums[i] + ""; } newtext += ""; document.getElementById('results').innerHTML = newtext; };