DEV Community

Cover image for Can you do it more dificulty?
Theago
Theago

Posted on

Can you do it more dificulty?

Wrong ❌
if ($a == 1) {
    return true;
}

return false;

Enter fullscreen mode Exit fullscreen mode
Correct ✅
switch ($a) {
  case 1:
    return true;
    break;
  default:
    return false;
    break;
}

Enter fullscreen mode Exit fullscreen mode

Top comments (0)