We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b0449d commit e0dbdfaCopy full SHA for e0dbdfa
1-js/02-first-steps/05-types/article.md
@@ -216,16 +216,16 @@ alert(age); // "undefined"
216
217
```js
218
// Обычный вид
219
-typeof 5 // "number"
+typeof 5 // Выведет "number"
220
// Выглядит как функция, но это не так
221
-typeof(5) // "number"
+typeof(5) // Выведет "number"
222
```
223
224
Если передается выражение, то нужно заключать его в скобки т.к. typeof имеет более высокий приоритет, чем бинарные операторы:
225
226
227
-typeof 50 + " Wisen"; // "number Wisen"
228
-typeof (50 + " Wisen"); // "string"
+typeof 50 + " Квартир"; // Выведет "number Квартир"
+typeof (50 + " Квартир"); // Выведет "string"
229
230
231
Вызов `typeof x` возвращает строку с именем типа:
0 commit comments