+ 1

Hello, I have difficulty in JavaScript, I don't know. Why I can't use alert, because it's doesn't work. I think my script is ok.

(solved) function showPreloader() { //complete the function alert("Loading !"); } //call the function showPreloader();

5th Feb 2021, 10:40 AM
Ratna13
Ratna13 - avatar
7 Answers
+ 2
Ratna13 That's great. However, on the Sololearn application, If you use the "Web" playground instead of "Node.js", you can use browser js e.g. alert.
6th Feb 2021, 5:48 AM
Ore
Ore - avatar
+ 4
Are you running it in a browser? Note that alert will not work in Node.js and some other runtimes.
5th Feb 2021, 11:54 AM
Ore
Ore - avatar
5th Feb 2021, 10:56 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 2
Okayy, I'll try it,
6th Feb 2021, 6:01 AM
Ratna13
Ratna13 - avatar
+ 1
Ratna13 I see you prepended "(solved)" to your question description. Does that mean you have solved your problem?
6th Feb 2021, 5:43 AM
Ore
Ore - avatar
+ 1
Yes, I've just changed using console.log 😂
6th Feb 2021, 5:45 AM
Ratna13
Ratna13 - avatar
0
I'm using application, how to change from note.js ? Because it's default
5th Feb 2021, 12:33 PM
Ratna13
Ratna13 - avatar