Ad
Code
Diff
  • const showName = message => name => `${message} ${name}`
    const helloWorld = showName("Hello World")
    const NiceToMeet = showName("Nice to meet you")
    
    • function helloWorld(name){
    • return "Hello World " + name;
    • }
    • const showName = message => name => `${message} ${name}`
    • const helloWorld = showName("Hello World")
    • const NiceToMeet = showName("Nice to meet you")