Ad
Code
Diff
  • const greet= (target='World') => `Hello ${target}!`;
     
    //greet() -> Output --> 'Hello World!'
    //greet('Friend') -> Output --> 'Hello Friend!'
    • function Greet(){return "Hello World!"}
    • const greet= (target='World') => `Hello ${target}!`;
    • //greet() -> Output --> 'Hello World!'
    • //greet('Friend') -> Output --> 'Hello Friend!'