mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 22:46:22 +00:00
20 lines
268 B
Markdown
20 lines
268 B
Markdown
|
---
|
||
|
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")
|
||
|
}
|
||
|
```
|