I've been struggling to locate the values despite numerous attempts. What steps can I take to resolve this issue? Below is my code snippet:
var numVal = prompt("");
for (var i = 1; i <= numVal; i++) {
if (i % 2 !== 0) {
console.log("-");
document.write("-");
// console.log(i);
document.write(i);
} else {
console.log("+");
document.write("+");
// console.log(i);
document.write(i);
}
}
document.write("=", );