What am I doing wrong here?


#1

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

TypeError: console.log is not a function. (In 'console.log(nameString("Joseph"))', 'console.log' is "Hi, I am Joseph")


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

console.log(nameString("Joseph"));


#2

@terapro59522,
Have you tried a reset Browser......

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#4

The browser reset was the problem!

Thanks


#5

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