That's strange.
- Try making sure to use a semicolon after the function
- Make sure you're using console.log() and not only console()
- Try looking for any script that disables console.log
- Reload the page without cache (press F5)
- Something's wrong with your browser
Hope this helps! Please upvote ->
Simply put a semicolon (;) after console.log(…)
error case
console.log()
(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