On this challenge, we need to utilize the Date function in an Arrow Function. Now, I successfully get my date/time returned when calling back through console.log, but the error says ‘magic() should return correct date’? Even though it is? I’m fairly sure my answer is correct (have not looked at solution yet) though I’d really appreciate some feedback as to perhaps the one-liner that I think is the solution is wrong?
Your code so far
const magic = () => Date();