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 
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.
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> 