Ad
Code
Diff
  • const magick_message = x => {
      if(x==1){
        return "abracadabra!"
      } else if (x==0){
        return "codewarz"
      }
    }
    
    • const magick_message = x => ['codewarz', 'abracadabra!'][+x];
    • const magick_message = x => {
    • if(x==1){
    • return "abracadabra!"
    • } else if (x==0){
    • return "codewarz"
    • }
    • }