const holidays = () => return "Merry Christmas and a happy new year π!"
In this example you dont really need word "return". Arrow functions which are one line and dont use curly braces automatically return result. So it should be like this:
const holidays = () => "Merry Christmas and a happy new year π!"
const holidays = () => return "Merry Christmas and a happy new year π!"
In this example you dont really need word "return". Arrow functions which are one line and dont use curly braces automatically return result. So it should be like this:
const holidays = () => "Merry Christmas and a happy new year π!"
I wanted to be more clear. But yours also works well.
I also changed it lol.
Usage of
return
explicitly into a single statement arrow function (without the curly brackets), is actually a syntax error π.