11. Function Recap; need help


#1

https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/3?curriculum_id=506324b3a7dffd00020bf661#

TypeError: console.log is not a function


var nameString = function ( name ) {
	return "Hi, I am" + " " + name;	
};
console.log(nameString("Danny"))


#2

First I ran it on the exercise and it passed, then I ran it in the Codecademy labs and I didn't get any errors. Have you tried refreshing the page?

Maybe if you added the semicolon at the end of your console.log statement then that will help, but that doesn't explain why it passed for me.


#3

Returning after 5 hours and trying the same code again it worked. Might have been a glitch. Thank you for help!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.