Use Arrow Functions to Write Concise Anonymous Function

Tell us what’s happening:

i don’t know why i can’t pass this test ; giving the previous lessons , there is not much i can do here

Your code so far


const magic = () => Date() ;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/use-arrow-functions-to-write-concise-anonymous-functions

You forgot to add new keyword in front of Date();

1 Like