en.javascript.info/1-js/02-first-steps/10-ifelse/5-rewrite-if-question/task.md
Ilya Kantor 9ad9063d00 up
2016-11-28 21:35:42 +03:00

16 lines
176 B
Markdown

importance: 5
---
# Rewrite 'if' into '?'
Rewrite this `if` using the ternary operator `'?'`:
```js
if (a + b < 4) {
result = 'Below';
} else {
result = 'Over';
}
```