Tell us what’s happening:
I’m recieving the correct output as far as I can tell, and there are no errors in my chrome console. The test still will not pass.
Your code so far
function getDateFormats() {
let date = new Date();
let res = []
res.push(date.toISOString().substring(0,10))
let op = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
res.push(date.toLocaleDateString("en-us", op))
return res;
}
console.log(getDateFormats())
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36.
Challenge: Date format
Link to the challenge: