Last active
April 25, 2017 17:53
-
-
Save gpbaculio/db7736cf0b718c107bd76b1ab8dd2414 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
var Durant = 35+"Durant"; // concatenate number and String, return value will be type of string | |
console.log(typeof Durant); // returns string | |
var NumBoolean = 5+true; // adds 1, returns 6 type of number | |
console.log(typeof NumBoolean); // returns number | |
console.log(14%5); // returns the remainder 4 | |
console.log(2**3); // returns 8, same as 2*2*2 | |
var x = 5; // x = 5 | |
var y = ++x; // y = 6 | |
var z = 5+5-2*8/2; // z =2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment