12. "Type Error: console.log is not a function"


Loops and arrays II

Console says: "TypeError: console.log is not a function"

var names = ["Salad", "Green", "Tim", "Sally", "Boogers"];

for (var i = 0; i < names.length; i++) {
    console.log("I know someone called " + names[i]);


Try a refresh Browser

++++ reset of session *****************
As you are manipulating with objects
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


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

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