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