Skip to content

Instantly share code, notes, and snippets.

@jonatan-alama
Created April 17, 2016 07:13
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 jonatan-alama/813e1a81a9688e5c76cb721acf8b5c22 to your computer and use it in GitHub Desktop.
Save jonatan-alama/813e1a81a9688e5c76cb721acf8b5c22 to your computer and use it in GitHub Desktop.
let a = "Hello";
let b = 5;
let c = new Date();
let d = function D() { return true; };
class E {};
let e = new E();
console.log(typeof a); // string
console.log(typeof b); // number
console.log(typeof c); // object
console.log(typeof d); // function
console.log(typeof e); // object
console.log(typeof E); // function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment