From 0e7ec413483c89b70724e3c805b647707c61b672 Mon Sep 17 00:00:00 2001 From: "Luke Charles (charle44)" Date: Wed, 23 Oct 2019 18:11:25 +0100 Subject: [PATCH] typo ammendment changed "vsriable" to "variable" --- 05 JavaScript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05 JavaScript.md b/05 JavaScript.md index 27afe040..440d30ea 100644 --- a/05 JavaScript.md +++ b/05 JavaScript.md @@ -685,7 +685,7 @@ const matt = new ECMA6Student('matt') console.log(ECMA6Student.studentCount()) // prints '2' ``` -Notice that the static vsriable `count` is public (so the `studentCount()` method is somewhat superfluous in this example!). This highlights one of the limitations of JavaScript, the lack of a simple way to define private attributes (variables and methods). The next section goes into this in more detail and explains some workarounds (hacks) to get around this. +Notice that the static variable `count` is public (so the `studentCount()` method is somewhat superfluous in this example!). This highlights one of the limitations of JavaScript, the lack of a simple way to define private attributes (variables and methods). The next section goes into this in more detail and explains some workarounds (hacks) to get around this. ### 4.5 Handling Data Encapsulation