en.javascript.info/1-js/02-first-steps/10-ifelse/5-rewrite-if-question/task.md
Ilya Kantor e52705e012 fixes
2019-08-02 13:48:10 +03:00

17 lines
192 B
Markdown

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