wiki/content/20201030093832-javascript_if_statement.md

283 B

date id title
20201030 3791e37d-c3cd-4e61-8802-76eeee25c08b JavaScript If Statement

Syntax

if(true === true) {
    console.log("True is true")
}

if (true === false) {
    console.log("True is false")
}
else {
    console.log("True is not false")
}