JavaScript code (embedded in body element) let nums = new Array(1, 6, 2, 9, -3); nums[2] = 42; document.writeln(""); for (var i=0; i" + nums[i] + ""); } document.writeln("");