From db1b435775288e259995b4bf552e83a7752ed3e9 Mon Sep 17 00:00:00 2001 From: Natalie Cardot <33387780+nataliecardot@users.noreply.github.com> Date: Wed, 22 May 2019 15:42:44 -0700 Subject: [PATCH] Fix spelling (#36111) "hachedEgg" -> "hatchedEgg" --- ...s-within-an-object-from-being-modified-externally.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/use-closure-to-protect-properties-within-an-object-from-being-modified-externally.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/use-closure-to-protect-properties-within-an-object-from-being-modified-externally.english.md index 683cb9f88cc..c47a6362a99 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/use-closure-to-protect-properties-within-an-object-from-being-modified-externally.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/use-closure-to-protect-properties-within-an-object-from-being-modified-externally.english.md @@ -32,7 +32,7 @@ let ducky = new Bird(); ducky.getHatchedEggCount(); // returns 10 ``` -Here getHachedEggCount is a privileged method, because it has access to the private variable hatchedEgg. This is possible because hatchedEgg is declared in the same context as getHachedEggCount. In JavaScript, a function always has access to the context in which it was created. This is called closure. +Here getHatchedEggCount is a privileged method, because it has access to the private variable hatchedEgg. This is possible because hatchedEgg is declared in the same context as getHatchedEggCount. In JavaScript, a function always has access to the context in which it was created. This is called closure.