About 12,700,000 results
Open links in new tab
  1. javascript - What is lexical scope? - Stack Overflow

    Jun 26, 2009 · This is called lexical scoping where " functions are executed using the scope chain that was in effect when they were defined " - according to JavaScript Definition Guide. Lexical scope is a …

  2. language agnostic - What is a callback function? - Stack Overflow

    May 5, 2009 · In Javascript, or more specifically jQuery, for example, you can specify a callback argument to be called when an animation has finished. In PHP, the preg_replace_callback() function …

  3. javascript - What exactly does the "class" keyword actually do? How is ...

    Dec 5, 2023 · Classes in JavaScript simplify the definition of complex structures and inheritance, making them more accessible and manageable, especially for developers experienced with object-oriented …

  4. Why can I use a function before it's defined in JavaScript?

    Is hoisting actually "calling the function before it is defined"? Raising the scope of a declared name so that it will be defined for other code under that scope -- that's roughly what JavaScript does to allow …

  5. javascript - Declaring vs Initializing a variable? - Stack Overflow

    Jul 30, 2015 · The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types. Simply declaring a variable in Javascript, such as var example initializes …

  6. Find JavaScript function definition in Chrome - Stack Overflow

    20 Another way to navigate to the location of a function definition would be to break in debugger somewhere you can access the function and enter the functions fully qualified name in the console. …

  7. javascript - What is the meaning of "...args" (three dots) in a ...

    Feb 12, 2017 · What is the meaning of "...args" (three dots) in a function definition? Asked 8 years, 9 months ago Modified 3 years ago Viewed 120k times

  8. What is client side javascript and what is server side javascript?

    Sep 10, 2009 · JavaScript is commonly believed just to run on browsers- this is incorrect. When I was a classic ASP developer we had the choice of VBScript or JavaScript server side (we also had the …

  9. How does inline Javascript (in HTML) work? - Stack Overflow

    Inline JavaScript in HTML allows scripts to be embedded directly within the HTML code, enabling dynamic content and interactive features on web pages.

  10. javascript - Set type for function parameters? - Stack Overflow

    302 No, plain JavaScript is not a statically typed language. Sometimes you may need to manually check types of parameters in your function body. However, you can use linters and supersets of JavaScript …