Ad
Code
Diff
  • function sayHello(input) {
      return !input ? "Hello World!" : "Hello " + input + "!"
    };
    
    • function sayHello(input) {
    • if (input !== true){
    • return "Hello World!";
    • } else {
    • return "Hello " + input + "!";
    • }
    • return !input ? "Hello World!" : "Hello " + input + "!"
    • };