bmalhi
bmalhi

Reputation: 172

JSLint warning in Brackets how to fix it for running javascript?

I trying to write javascript code on Brackets IDE. But it shows error every time I run the code. JSLint problem

console.log(a);

Says that 'console' was used before it was defined. console.log(a); I do not know how to fix it. Please can somebody help me fix this issue with Brackets.

Upvotes: 0

Views: 2331

Answers (1)

Scott C Wilson
Scott C Wilson

Reputation: 20026

If you use

/*global document, window, alert, console, require*/

at the top of your file, it fixes this issue.

Upvotes: 2

Related Questions