forked from selombanybah/Learncode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.txt
More file actions
22 lines (17 loc) · 710 Bytes
/
Copy path5.txt
File metadata and controls
22 lines (17 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function ifStatements(num){
//If statements in Javascript can be defined using if()
//Javascript has multiple operators that can be used inside
//the statement these include:
/*
== Equal To
!= Not Equal To
> Greater Than
>= Greater Than or Equal To
< Less Than
<= Less Than or Equal To
*/
// eg. if(2 > 1) will return the boolean value True, as the statement is true
// eg. if(2 == 1) will return the boolean value False, as the statement is false
//Create an if statement to check if num multipled by 72 and divided by 12 is equal to 18
}
ifStatements(3);