Javascript Functions

¬†Are first-class objects. As a result, can be assigned to variables, can be given as arguments. Can be declared by name of by using function expression. () operator executes the function. All functions have a default property named “parameters”. It is an “array-like” object where all given parameters can be reached. Parameters are passed by … More Javascript Functions

Javascript Objects and Classes

In Javascript, there are no class declarations in JavaScript. Javascript objects are dynamic. At runtime, new properties and methods van be add and removed using “delete” operator. All Javascript properties are public. Accessing non-existing properties does not throws an exception but returns “undefined”. Properties can be used in array form, like myObject[myProperty]. Property notation is … More Javascript Objects and Classes

Javascript variable rules in short

¬†Javascript varibles have 5 types: number, string, boolean, undefined and null. string, number and boolean types have wrapper objects. var a = “str”; is a primitive String. var a = new String(“str”); is a String object. When an object property is needed, like the length or toUppercase, Javascript runtime creates a temporary object to do … More Javascript variable rules in short