minor fixes

- fix erratas
- fix wrong error message
- add 'run' on runnable example
- add explanation about window.onload property corresponding load event
- add comment about window.onstorage property corresponding storage event
This commit is contained in:
Violet Bora Lee 2020-03-14 07:27:49 +09:00
parent 36737518f8
commit 958cbe72b8
8 changed files with 13 additions and 13 deletions

View file

@ -31,7 +31,7 @@ function func() {
// hence the error
*/!*
console.log(x); // ReferenceError: Cannot access 'vx before initialization
console.log(x); // ReferenceError: Cannot access 'x' before initialization
let x = 2;
}

View file

@ -218,7 +218,7 @@ The Function Expression is wrapped with parenthesis `(function {...})`, because
```js run
// Try to declare and immediately call a function
function() { // <-- Error: Unexpected token (
function() { // <-- Error: Function statements require a function name
let message = "Hello";