JavaScript Reserved Words

In JavaScript you cannot use these reserved words as variables, labels, or function names: abstract arguments await* boolean break byte case catch char class* const continue debugger default delete do double else enum* eval export* extends* false final finally float for function goto if implements import* in instanceof int interface let* long native new null […]

The JavaScript this Keyword

Example var person = { firstName: “John”, lastName : “Doe”, id       : 5566, fullName : function() { return this.firstName + ” ” + this.lastName; } }; Try it Yourself » What is “this”? In a function definition, this refers to the “owner” of the function. In the example above, this refers to the person object. The person object “owns” the fullName method. Default Binding When used alone, this refers to the Global object. In a browser the Global object is […]