SHARE
TWEET

Untitled

a guest Sep 15th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***************************
  2.  *  Basic Operators
  3.  *
  4.  */
  5.  
  6. var year, yearJohn;
  7.  
  8. // Math operators
  9. year = 2018
  10. yearJohn = year - 28;
  11.  
  12. console.log(yearJohn);
  13. console.log(year + 2);
  14. console.log(year * 2);
  15. console.log(year / 2);
  16.  
  17. // Logical operators
  18. var greater = 11 > 10
  19. console.log(greater);
  20.  
  21. // typeof operator
  22. console.log(typeof greater);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top