About 77 results
Open links in new tab
  1. The Modern JavaScript Tutorial

    2 days ago · Modern JavaScript Tutorial: simple, but detailed explanations with examples and tasks, including: closures, document and events, object oriented programming and more.

  2. Advanced working with functions - The Modern JavaScript Tutorial

    Recursion and stack Rest parameters and spread syntax Variable scope, closure The old "var" Global object Function object, NFE The "new Function" syntax Scheduling: setTimeout and …

  3. Hello, world! - The Modern JavaScript Tutorial

    Nov 1, 2021 · These comments hide JavaScript code from old browsers that didn’t know how to process the <script> tag. Since browsers released in the last 15 years don’t have this issue, …

  4. Loops: while and for - The Modern JavaScript Tutorial

    Jun 19, 2022 · In practice, the browser provides ways to stop such loops, and in server-side JavaScript, we can kill the process. Any expression or variable can be a loop condition, not …

  5. JavaScript Fundamentals

    The modern mode, "use strict" Variables Data types Interaction: alert, prompt, confirm Type Conversions Basic operators, maths Comparisons Conditional branching: if, '?' Logical …

  6. Functions - The Modern JavaScript Tutorial

    Oct 14, 2022 · This example clearly demonstrates one of the main purposes of functions: to avoid code duplication. If we ever need to change the message or the way it is shown, it’s enough to …

  7. The JavaScript language

    Here we learn JavaScript, starting from scratch and go on to advanced concepts like OOP. We concentrate on the language itself here, with the minimum of environment-specific notes.

  8. Currying - The Modern JavaScript Tutorial

    Jan 10, 2021 · Let’s see an example first, to better understand what we’re talking about, and then practical applications. We’ll create a helper function curry(f) that performs currying for a two …

  9. The modern mode, "use strict" - The Modern JavaScript Tutorial

    May 19, 2020 · Modern JavaScript supports “classes” and “modules” – advanced language structures (we’ll surely get to them), that enable use strict automatically. So we don’t need to …

  10. Recursion and stack - The Modern JavaScript Tutorial

    Oct 1, 2022 · Recursive functions can be used to walk them as we’ve seen in the sumSalary example. Any recursive function can be rewritten into an iterative one. And that’s sometimes …