Skip to content

Instantly share code, notes, and snippets.

View tvytlx's full-sized avatar
👾
#positive

Xiao Tan tvytlx

👾
#positive
View GitHub Profile
@tvytlx
tvytlx / gist:61e61522b342ced59510c7a8e4f31fe7
Last active April 2, 2017 05:42
这片代码解释了js(es6)的两个问题:let和var的区别,函数传参是 by value 还是 by reference
f = (i)=>{
return ()=>{return i;}
}
var a = []
var b = []
var c = []
(()=>{
  for(var i=0; i<5; i++){