Temp var Assignment vs Property Assigment

Edit on GitHub

Setup

var a = { b: 1 };

Tests

  • Temp var Assignment

    var b = a.b;
    var c = b;
    var d = b;
  • Property Assigment

    var c = a.b;
    var d = a.b;