node console.log is not a function code example
Example 1: console.log(...) is not a function
Simply put a semicolon (;) after console.log(…)
error case
console.log()
(function(){})
Example 2: console.log is not a function
This is probably a cache error, try the 4 different options below
- Press F5 on your keyboard to refresh the page and cache
- Make sure there is a semicolon at the end of the function as seen below
console.log('test');
- Close the browser and clear the cache before trying again
- Try a different browser
Don't forget to upvote if this helped so others can see