From 233d63c92792b53bbd75a8161c1ce3bec7c9f129 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 13 Dec 2021 18:30:32 +0300 Subject: [PATCH] minor fixes --- 1-js/02-first-steps/05-types/article.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/1-js/02-first-steps/05-types/article.md b/1-js/02-first-steps/05-types/article.md index 0bb349c8..975a0c1b 100644 --- a/1-js/02-first-steps/05-types/article.md +++ b/1-js/02-first-steps/05-types/article.md @@ -250,7 +250,9 @@ The last three lines may need additional explanation: ```smart header="The `typeof(x)` syntax" You may also come across another syntax: `typeof(x)`. It's the same as `typeof x`. -The parentheses here aren't a part of the `typeof` operator. It's the kind of parentheses used for mathematical grouping. Usually, such parentheses contain a mathematical expression, such as `(2 + 2)`, but here they contain only one argument `(x)`. Syntactically, they allow to avoid a space between the `typeof` operator and its argument, and some people like it. +To put it clear: `typeof` is an operator, not a function. The parentheses here aren't a part of the `typeof`. It's the kind of parentheses used for mathematical grouping. + +Usually, such parentheses contain a mathematical expression, such as `(2 + 2)`, but here they contain only one argument `(x)`. Syntactically, they allow to avoid a space between the `typeof` operator and its argument, and some people like it. Some people prefer `typeof(x)`, although the `typeof x` syntax is much more common. ```