1Differentce between .bind() , .call() and .apply()
2
3.bind(someobj) -> does not invoke the function, it just allows you to
4bind whatever object you want, you have to call the function yourself.
5
6.call(someobj) and .apply(someobj)-> both invoke the function
7immediately,and modify the context.
8The only difference is how you pass your
9own arguments. See below
10
11.call(someobj, param1, param2)
12.apply(someobj, [param1, param2]) //uses array to pass the args
13
14
15