
Code structure - The Modern JavaScript Tutorial
May 29, 2021 · The first thing we’ll study is the building blocks of code. Statements. Statements are syntax constructs and commands that perform actions. We’ve already seen a statement, …
The Modern JavaScript Tutorial
5 days ago · Modern JavaScript Tutorial: simple, but detailed explanations with examples and tasks, including: closures, document and events, object oriented programming and more.
Structure du code - JavaScript
Jul 7, 2021 · La première chose à apprendre est de construire des blocs de code. Instructions. Les instructions sont des constructions de syntaxe et des commandes qui effectuent des …
DOM tree - The Modern JavaScript Tutorial
Oct 14, 2022 · The DOM represents HTML as a tree structure of tags. Here’s how it looks: On the picture above, you can click on element nodes and their children will open/collapse.
The "switch" statement - The Modern JavaScript Tutorial
Apr 25, 2022 · An example of switch (the executed code is highlighted): let a = 2 + 2; switch (a) { case 3: alert( 'Too small' ); break; case 4: alert( 'Exactly!' ); break; case 5: alert( 'Too big' ); …
Functions - The Modern JavaScript Tutorial
Oct 14, 2022 · Functions are the main “building blocks” of the program. They allow the code to be called many times without repetition. We’ve already seen examples of built-in functions, like …
Le Tutoriel JavaScript Moderne
Tutoriel JavaScript moderne : explications simples mais détaillées avec des exemples et des exercices, y compris : les closures, le document et les événements, la programmation orientée …
Code editors - The Modern JavaScript Tutorial
Oct 18, 2022 · A code editor is the place where programmers spend most of their time. There are two main types of code editors: IDEs and lightweight editors. Many people use one tool of …
Comments - The Modern JavaScript Tutorial
May 22, 2022 · As we know from the chapter Code structure, comments can be single-line: starting with // and multiline: /* ... We normally use them to describe how and why the code …
Coding Style - The Modern JavaScript Tutorial
Jun 26, 2022 · When we think about writing “better” code, the questions we should ask ourselves are: “What makes the code more readable and easier to understand?” and “What can help us …
- Some results have been removed