en.javascript.info/1-js/2-first-steps/08-operators/3-primitive-conversions-questions/task.md
Ilya Kantor 88bd9889a2 work
2016-05-26 12:43:54 +03:00

28 lines
376 B
Markdown

importance: 5
---
# Type conversions
Let's recap type conversions in the context of operators.
What will be the result for these expressions?
```js no-beautify
"" + 1 + 0
"" - 1 + 0
true + false
6 / "3"
2" * "3"
4 + 5 + "px"
$" + 4 + 5
"4" - 2
"4px" - 2
7 / 0
" -9\n" + 5
" -9\n" - 5
null + 1
undefined + 1
```
Think well, write down and then compare with the answer.