Question: Hello, My program isn't displaying the results. It should print all numbers entered that arent a duplicate and meet requirements of program. comments and output
Hello,
My program isn't displaying the results. It should print all numbers entered that arent a duplicate and meet requirements of program.
comments and output appreciated
Enter Number:
function numEnter() {
document.getElementById("input").value = "";
}
var input = [];
var output = [];
for(var i = 0; i= 10 && input[i] <= 100 && !output.includes(input[i])) {
output.push(input[i]);
console.log(input[i]);
}}
else { console.log("Invalid number: " + input[i]);
}}
Thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
