JavaScript code window.onload = function() { "use strict"; let divResult = document.getElementById('results'); let list = document.createElement('ul'); let nums = new Array(1, 6, 2, 9, -3); nums[2] = 42; for (var i=0; i