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

    Jun 26, 2009 · 42 A lexical scope in JavaScript means that a variable defined outside a function can be accessible inside another function defined after the variable declaration. But the …

  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() …

  3. 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 …

  4. Defining and calling function in one step - Stack Overflow

    Dec 30, 2015 · Is there a way in Javascript to define a function and immediately call it, in a way that allows it to be reused? I know you can do one-off anonymous functions: (function(i) { var …

  5. 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

  6. 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.

  7. 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 …

  8. Set a default parameter value for a JavaScript function

    I would like a JavaScript function to have optional arguments which I set a default on, which get used if the value isn't defined (and ignored if the value is passed). In Ruby you can do it like th...

  9. What is an interface in JavaScript? - Stack Overflow

    May 3, 2021 · Note that the "interface" definition you're linking to is not exactly a JavaScript thing, but more of a thing for web APIs. In other implementations of JavaScript not in browsers (for …

  10. What is “assert” in JavaScript? - Stack Overflow

    while JavaScript supports console.assert(), it's just a logging method and won't interrupt current procedure if assertion failed. To bring things together and satisfy various needs, here is a tiny …