Hi , i have learned from the course that arrow function with one parameter, we don’t need to use parentheses.
so I am a bit confuse for the practice below :
Which of the following is NOT a properly written arrow function?
let nameLogger = (name) => { console.log(Hi, my name is ${name}.
); }
let phraseSplit = phrase => phrase.split(" ")
let multiply = (x, y) => x * y
let fileName = function(x) => console.log(File name is ${x}
);
so way still in the first answer ( that I was thinking it is wrong as we have parentheses with one parameter )
thank you for helping out