wiki/content/20201030093832-javascript_if_statement.md

21 lines
285 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-10-30
2024-05-06 20:40:05 +00:00
id: 3791e37d-c3cd-4e61-8802-76eeee25c08b
title: JavaScript If Statement
---
# Syntax
``` javascript
if(true === true) {
console.log("True is true")
}
if (true === false) {
console.log("True is false")
}
else {
console.log("True is not false")
}
```