You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/2-first-steps/14-types-conversion/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ alert( a ); // "true"
25
25
Можно также осуществить преобразование явным вызовом `String(val)`:
26
26
27
27
```js run
28
-
alert( String(null) ==="null" ); // true
28
+
alert( String(null) =="null" ); // true
29
29
```
30
30
31
31
Как видно из примеров выше, преобразование происходит наиболее очевидным способом, "как есть": `false` становится `"false"`, `null` -- `"null"`, `undefined` -- `"undefined"` и т.п.
0 commit comments