
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.
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 setInterval …
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, this kind of …
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 just comparisons: the …
JavaScript Fundamentals
The modern mode, "use strict" Variables Data types Interaction: alert, prompt, confirm Type Conversions Basic operators, maths Comparisons Conditional branching: if, '?' Logical operators Nullish …
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 modify the …
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.
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-argument f.
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 add the "use …
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 required to …