Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 27, 2020 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/c147c367ffbdfb05055f4a9a04da2c14 to your computer and use it in GitHub Desktop.
Save reime005/c147c367ffbdfb05055f4a9a04da2c14 to your computer and use it in GitHub Desktop.
let a = 1;
let b = 2;
let c;
console.log(typeof(a)); //number
console.log(typeof(b)); //number
console.log(typeof(c)); //undefined
c = a + b;
console.log(typeof(c)); //number
c = "Test" + a + b;
console.log(typeof(c)); //string
c = "";
console.log(typeof(c)); //string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment