Skip to content

Instantly share code, notes, and snippets.

@EllisShen
Created September 3, 2017 22:34
Show Gist options
  • Save EllisShen/f698820a41a5fea07dd00f747d4dc355 to your computer and use it in GitHub Desktop.
Save EllisShen/f698820a41a5fea07dd00f747d4dc355 to your computer and use it in GitHub Desktop.

Revisions

  1. @wshen001 wshen001 created this gist Sep 3, 2017.
    11 changes: 11 additions & 0 deletions gotcha_1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    var anArray = [1, 2, 3]
    console.log(typeof anArray);
    console.log(toString.call(barArray));

    var aFunc = function () {
    return '3';
    }
    console.log(typeof aFunc);

    var aNull = null;
    console.log(typeof aNull);