Last active
September 4, 2019 15:41
-
-
Save rintoandrews90/20ca5d8b19a03fe1c617f1ce4a555203 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************** | |
* 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment