Skip to content

Commit 986fc3b

Browse files
committed
Pass over chapter 2
Use let as the default binding construct, refer to bindings rather than variables, drop emphasis on alert, clean up some sections.
1 parent 187f57b commit 986fc3b

5 files changed

Lines changed: 474 additions & 515 deletions

File tree

01_values.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,8 @@ console.log(typeof "x")
356356
{{id "console.log"}}
357357

358358
We will use `console.log` in example code to indicate that we want to
359-
see the result of evaluating something. When you run such code, the
360-
value produced will be shown somewhere, though where exactly depends
361-
on the JavaScript environment you use to run it. In a browser, it goes
362-
to the JavaScript console, which is hidden by default. [When running
363-
example code in this book, it will be shown below the code.]{if
364-
interactive}
359+
see the result of evaluating something. More about that in the [next
360+
chapter](02_program_structure.html).
365361

366362
{{index negation, "- operator", "binary operator", "unary operator"}}
367363

@@ -682,4 +678,3 @@ This gives you enough information to use JavaScript as a pocket
682678
calculator, but not much more. The [next
683679
chapter](02_program_structure.html#program_structure) will start tying
684680
these expressions together into basic programs.
685-

0 commit comments

Comments
 (0)