en.javascript.info/1-js/2-first-steps/11-ifelse/5-rewrite-if-question/task.md
Ilya Kantor 88bd9889a2 work
2016-05-26 12:43:54 +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';
}