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?
I’m guessing because new date (within the function they show you to use in the solution) returns the latest date to whatever code/engine confirms whether your code is correct or not. Actually, I’m fairly certain that’s why. Feel free to add comments/opinions. Have a good day all.