The text editor that I am using is Brackets. I am encountering an error message when I try to use console.log
in any JS file.
1 - Create/Open an JS file
2 - Type console.log('hello world');
3 - Save the file
JSLint Problem:
error message in JSLint 'console' was used before it was defined.
Use the
devel
option:So at the top of your script add this line: