minor fixes

This commit is contained in:
Ilya Kantor 2021-05-16 18:51:51 +03:00
parent f84140232e
commit 18a039473a

View file

@ -75,7 +75,7 @@ The difference compared to the code above is only one character: the semicolon a
If we run this code, only the first `Hello` shows (and then you may see the error, but it may also be hidden). There are no numbers any more.
That's because JavaScript does not assume a semicolon before square brackets `[...]`. So, the code in the first example is treated as a single statement.
That's because JavaScript does not assume a semicolon before square brackets `[...]`. So, the code in the last example is treated as a single statement.
Here's how the engine sees it: