Skip to content

Instantly share code, notes, and snippets.

@rintoandrews90
Last active September 4, 2019 15:41
Show Gist options
  • Save rintoandrews90/20ca5d8b19a03fe1c617f1ce4a555203 to your computer and use it in GitHub Desktop.
Save rintoandrews90/20ca5d8b19a03fe1c617f1ce4a555203 to your computer and use it in GitHub Desktop.
/***************************
* 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