Skip to content

Instantly share code, notes, and snippets.

@gpbaculio
Last active April 25, 2017 17:53
Show Gist options
  • Save gpbaculio/db7736cf0b718c107bd76b1ab8dd2414 to your computer and use it in GitHub Desktop.
Save gpbaculio/db7736cf0b718c107bd76b1ab8dd2414 to your computer and use it in GitHub Desktop.
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