From 58fdd6e686fdfba09c6304171fcb3f4ed93416d7 Mon Sep 17 00:00:00 2001 From: Tom Sugden Date: Thu, 23 Oct 2014 22:44:46 +0100 Subject: [PATCH] Typo fix: they've --> they're --- types & grammar/ch1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types & grammar/ch1.md b/types & grammar/ch1.md index 1f628bc3e..e2b0f3134 100644 --- a/types & grammar/ch1.md +++ b/types & grammar/ch1.md @@ -290,7 +290,7 @@ JavaScript has seven built-in *types*: `null`, `undefined`, `boolean`, `number` Variables don't have types, but the values in them do. These types define intrinsic behavior of the values. -Many developers will assume "undefined" and "undeclared" are roughly the same thing, but in JavaScript, they've quite different. `undefined` is a value that a declared variable can hold. "Undeclared" means a variable has never been declared. +Many developers will assume "undefined" and "undeclared" are roughly the same thing, but in JavaScript, they're quite different. `undefined` is a value that a declared variable can hold. "Undeclared" means a variable has never been declared. JavaScript unfortunately kind of conflates these two terms, not only in its error messages ("ReferenceError: a is not defined") but also in the return values of `typeof`, which is `"undefined"` for both cases.