From ed664f87c2a7b240907c2111f4259f00ebec6771 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 14 Apr 2022 06:35:32 +0300 Subject: [PATCH] minor fixes --- 1-js/04-object-basics/01-object/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/04-object-basics/01-object/article.md b/1-js/04-object-basics/01-object/article.md index 82863898..6103d533 100644 --- a/1-js/04-object-basics/01-object/article.md +++ b/1-js/04-object-basics/01-object/article.md @@ -40,7 +40,7 @@ In the `user` object, there are two properties: 1. The first property has the name `"name"` and the value `"John"`. 2. The second one has the name `"age"` and the value `30`. -The resulting `user` object can be imagined as a cabinet with two signed files labelled "name" and "age". +The resulting `user` object can be imagined as a cabinet with two signed files labeled "name" and "age". ![user object](object-user.svg) @@ -120,7 +120,7 @@ alert(user["likes birds"]); // true delete user["likes birds"]; ``` -Now everything is fine. Please note that the string inside the brackets is properly quoted (any type of quote will do). +Now everything is fine. Please note that the string inside the brackets is properly quoted (any type of quotes will do). Square brackets also provide a way to obtain the property name as the result of any expression -- as opposed to a literal string -- like from a variable as follows: