JavaScript

Polyfills and transpilers

0

The JavaScript language steadily evolves. New proposals to the language appear regularly, they are analyzed and, if considered worthy, are appended to the list at https://tc39.github.io/ecma262/ and then...

Automated testing with Mocha

0

Automated testing will be used in further tasks, and it’s also widely used in real projects. Why do we need tests? When we write a function,...

Ninja code

0

Learning without thought is labor lost; thought without learning is perilous.Confucius (Analects) Programmer ninjas of the past used these tricks to sharpen the mind of code...

Comments

0

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

Coding Style

0

Our code must be as clean and easy to read as possible. That is actually the art of programming – to take a complex task and...

Debugging in the browser

0

Before writing more complex code, let’s talk about debugging. Debugging is the process of finding and fixing errors within a script. All modern browsers and most other...

Code quality

0

This chapter explains coding practices that we’ll use further in the development. 1. Debugging in the browser 2. Coding Style 3. Comments 4. Ninja code 5....

JavaScript specials

0

This chapter briefly recaps the features of JavaScript that we’ve learned by now, paying special attention to subtle moments. Code structure Statements are delimited with a...

Arrow functions, the basics

0

There’s another very simple and concise syntax for creating functions, that’s often better than Function Expressions. It’s called “arrow functions”, because it looks like this: This...

Function expressions

0

In JavaScript, a function is not a “magical language structure”, but a special kind of value. The syntax that we used before is called a Function Declaration:...