showing results for - "js let vs var performance"
Ignacio
17 Feb 2016
1let;  // Local scope only. Only visible in the scope it is declared in.
2var;  // Function scope.
3	  // Visible in the entire function, even if declared in a for loop.
4
5/*
6"After testing this in Chrome and Firefox, this shows that let is faster 
7than var, but only when inside a different scope than the main scope of a 
8function. In the main scope, var and let are roughly identical in 
9performance. In IE11 and MS Edge, let and var are roughly equal in performance 
10in both cases."
11*/
12