en.javascript.info/1-js/2-first-steps/10-ifelse/5-rewrite-if-question/task.md
2016-07-20 17:28:12 +03:00

176 B

importance: 5


Rewrite 'if' into '?'

Rewrite this if using the ternary operator '?':

if (a + b < 4) {
  result = 'Below';
} else {
  result = 'Over';
}