About 50 results
Open links in new tab
  1. Reserved keywords in JavaScript - Stack Overflow

    Aug 25, 2008 · Here is my poem, which includes all of the reserved keywords in JavaScript, and is dedicated to those who remain honest in the moment, and not just try to score:

  2. Why use "with" keyword in JavaScript? - Stack Overflow

    I can't express this enough: any "with"-like syntax, like the one for JavaScript and Delphi, where you're not explicitly specifying which identifiers belong to the "scoped" object, and which one aren't, are evil, …

  3. javascript - What is the difference between "let" and "var"? - Stack ...

    Apr 18, 2009 · The reason why let keyword was introduced to the language was function scope is confusing and was one of the main sources of bugs in JavaScript. Take a look at this example from …

  4. How does the "this" keyword work, and when should it be used?

    Jan 31, 2017 · The new keyword Consider a constructor function in Javascript: ... How does this work? Well, let's see what happens when we use the new keyword. Calling the function with the new …

  5. javascript - What is the "get" keyword before a function in a class ...

    The get keyword will bind an object property to a function. When this property is looked up now the getter function is called. The return value of the getter function then determines which property is …

  6. What is the 'new' keyword in JavaScript? - Stack Overflow

    The JavaScript engine sees the new keyword, creates a new object and sets the prototype to Dog.prototype The constructor function is executed with the this value set to the new object. In this …

  7. javascript - How does "this" keyword work within a function? - Stack ...

    Javascript has objects and functions. (that's not 100% accurate, functions are just objects, but it can sometimes be helpful to think of them as separate things) The this variable is attached to functions. …

  8. Is there a way to provide named parameters in a function call?

    C#, for example, allows using named parameters like so: calculateBMI(70, height: 175); I find this quite useful. How can I get a similar effect in JavaScript? I've tried doing things like myFuncti...

  9. Is JavaScript's "new" keyword considered harmful?

    Prototype inheritance. While often looked at with a mix of suspicion and derision by those accustomed to class-based OO languages, JavaScript's native inheritance technique is a simple and surprisingly …

  10. What is "require" in JavaScript and NodeJS? - Stack Overflow

    Alright, so let's first start with making the distinction between Javascript in a web browser, and Javascript on a server (CommonJS and Node). Javascript is a language traditionally confined to a web browser …