In Javascript, functions are objects. Therefore you can define objects by using functions like the following. function Person(name, age) { this.name = name; this.age = age; } var Jack …
Many articles have discussed the variables scopes in Javascript. Today, I will explain it during my own experiments. The javascript has only two scopes, local or global. It does …