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

176 B

importance: 5


Rewrite 'if' into '?'

Rewrite this if using the ternary operator '?':

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