This question has already been answered:

There is a problem with simple js code, I’m looking for an answer for a long time and I can’t figure out what to do. Throws an error with alert, console.log, document.write enter image description here

I read that you need to set the parameter "devel": true, through the jsLink configurator you turned on the parameter, one error is removed but the second remains. What to do? Thanks in advance.

enter image description here

js:

/*jslint devel: true*/ alert("text"); 

html:

 <!DOCTYPE html> <html> <head> <meta charset="utf-8" > <title>test</title> </head> <body> <h2>text</h2> <script src="main.js"></script> </body> </html> 

Reported as duplicate by participants 0xdb , Qwertiy javascript Jun 28 '18 at 9:15 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • The code needs to be inserted a text, not an image. - Enikeyschik
  • @ Enikeyschik, what's the point? - Qwertiy
  • @Qwertiy do you see the error text on these screenshots? I do not. - Enikeyschik
  • @ Enikeyschik 1. You can click on the screenshot, then you can see everything. 2. The text of the error is written in the title of the question. 3. The code is correct - the question of setting up the editor. - Qwertiy
  • @Qwertiy Yes, a lot of things you can. But if the questioner does not bother with the normal design of the question, then why should respondents bother themselves. Especially when from a question it is not even clear what the question is about, as you correctly noted. - Enikeyschik

0