my code is letter for letter with yours and I’m not receiving an error I wish I could be some kind of help to you but alas that seems not to be the case.
This is the line that is producing the error message:
console.log = contacts[1].phoneNumber;
because the above statement overwrites the console.log() method with a value so it is no longer a function. This will require a page refresh to restore JavaScript to normal. Be sure to Submit first so your code is saved before refreshing.
Turns out the browser just was deciding not to work for whatever reason, even with a reload and restart. Didn’t change anything from my code above and it worked fine. I guess I didn’t sacrifice the goat on the right night to get the computer to work like it’s supposed to, haha.