minor fixes

This commit is contained in:
Ilya Kantor 2022-03-24 09:04:34 +03:00
parent f3aeacc86b
commit 78091684e2
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ For instance:
let user = null; let user = null;
let x = 0; let x = 0;
user?.sayHi(x++); // no "sayHi", so the execution doesn't reach x++ user?.sayHi(x++); // no "user", so the execution doesn't reach sayHi call and x++
alert(x); // 0, value not incremented alert(x); // 0, value not incremented
``` ```

View file

@ -47,7 +47,7 @@ Now let's write something very small. Say, 1 microsecond (one millionth of a sec
let mсs = 0.000001; let mсs = 0.000001;
``` ```
Just like before, using `"e"` can help. If we'd like to avoid writing the zeroes explicitly, we could say the same as: Just like before, using `"e"` can help. If we'd like to avoid writing the zeroes explicitly, we could write the same as:
```js ```js
let mcs = 1e-6; // six zeroes to the left from 1 let mcs = 1e-6; // six zeroes to the left from 1