Share your repls and programming experiences

← Back to all posts
Here’s a script for JavaScript
MarzioChang (0)
  • Made by me
  • Beginners should look at this

var num = Math. floor(Math. random() 10)
var num2 = Math. floor(Math. random()
10)

var num3 = num * num2

if (num3 != 0){
console.log("num3 != 0")
} else {
console.log("num3 = 0")
}

console.log(num, "*", num2, "=", num3)

function bool() {
console.log(Boolean(num3))
}

if (num3 != -1) {
bool()
}

Comments
hotnewtop
CodingCactus (4367)

Hi, we've unlisted this as it does not contain much code. If you add some more and then reply to this comment, we can take another look and may relist it.