Skip to content

Instantly share code, notes, and snippets.

@btg5679
Created October 9, 2017 14:20
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 btg5679/61eb19e762ab05cc2be26339c8cff8a2 to your computer and use it in GitHub Desktop.
Save btg5679/61eb19e762ab05cc2be26339c8cff8a2 to your computer and use it in GitHub Desktop.
console.log( typeof( undefined ) ); // 'undefined'
console.log( typeof( null ) ); // 'object'
//Declared but unsassigned variable
let a;
console.log( typeof( a ) ); // 'undefined'
let b;
console.log( typeof( b ) ); // 'undefined'
b = null;
console.log( typeof( b ) ); // 'object'
@pratikkabade
Copy link

pratikkabade commented Jul 25, 2022

Give it extension .js to see coloured texts as per JavaScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment