const x = +prompt("Enter value");
if (x >= 0){
x++;
} else{
x -= 2;
}
console.log(x)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
const x = +prompt("Enter value");
if (x >= 0){
x++;
} else{
x -= 2;
}
console.log(x)