Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***************************
- * Basic Operators
- *
- */
- var year, yearJohn;
- // Math operators
- year = 2018
- yearJohn = year - 28;
- console.log(yearJohn);
- console.log(year + 2);
- console.log(year * 2);
- console.log(year / 2);
- // Logical operators
- var greater = 11 > 10
- console.log(greater);
- // typeof operator
- console.log(typeof greater);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement