It’s easy to install node.js on Windows, just go to node.js official site and download Windows installer, then execute the installer. Congratulations!!! You successfully installed node.js on Windows!!!Continue reading
I would like to describe the solutions I want to use before comparing, here’s my ideal solution:
What is a callback? A callback is a function to be executed after another function is executed. Sounds tongue-twisted? Normally if you want to call function
do_b after function
do_a the code looks something like
apply have been really confusing me. I neither know when to use it nor what are the differences between these two.
apply invoke the function and switch the function context with the first argument. The main difference between these two is with
call the rest arguments are passed to the calling function and those arguments have to be listed explicitly. However with
apply the amount of arguments don’t have to be predefined. we can pass in an array.
functional programming style or
object oriented programming style. With
functional programming you pass variables and callbacks around.
this is quite useless. However with
this is a must.