<script>
let num = parseFloat(prompt("Enter a number:"));
if (num > 0) {
console.log("The number is positive.");
} else if (num < 0) {
console.log("The number is negative.");
} else {
console.log("The number is zero.");
}
</script>
<script>
let num = parseFloat(prompt("Enter a number:"));
if (num > 0) {
console.log("The number is positive.");
} else if (num < 0) {
console.log("The number is negative.");
} else {
console.log("The number is zero.");
}
</script>
0 Comments
I really appreciate for your words. Thank you very much for your comment.