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