Skip to content
Permalink
Browse files

typo: 'strict mide' should be 'strict mode' ? (#1566)

* Fix typo

should be 'strict mode' I guess?

* fix typo: 2nd, get-started/ch4.md

* Revert "fix typo: 2nd, get-started/ch4.md"

This reverts commit c53aa76.
  • Loading branch information
luotaoruby authored and getify committed Dec 16, 2019
1 parent 58bc2ec commit ab5fdc081f75bfb6b1d677ec3e1a2c38776b4132
Showing with 1 addition and 1 deletion.
  1. +1 −1 get-started/ch1.md
@@ -425,7 +425,7 @@ The strict mode pragma must appear at the top of a file, with only whitespace or

| WARNING: |
| :--- |
| Something to be aware of is that even a stray `;` all by itself appearing before the strict mide pragma will render the pragma useless; no errors are thrown because it's valid JS to have a string literal expression in a statement position, but it also will silently *not* turn on strict mode! |
| Something to be aware of is that even a stray `;` all by itself appearing before the strict mode pragma will render the pragma useless; no errors are thrown because it's valid JS to have a string literal expression in a statement position, but it also will silently *not* turn on strict mode! |

Strict mode can alternatively be turned on per-function scope, with exactly the same rules/admonitions about its positioning):

0 comments on commit ab5fdc0

Please sign in to comment.
You can’t perform that action at this time.