0

Why is my program not working?

I created a function named greetings() which alerts the string "Hello" to the windows with the line window.alert("Hello") The problem is on vs-code I even called the function but nothing is happening https://code.sololearn.com/WSPMoMWr58KJ/?ref=app

8th Oct 2021, 9:17 PM
DN Josh
DN Josh - avatar
2 Answers
+ 1
Don't see why VSCode was rejecting it, it runs as it should in Code Playground, and Chrome (mobile), even built-in browser.
8th Oct 2021, 10:04 PM
Ipang
0
It does show. But in the pop-up.
8th Oct 2021, 9:58 PM
Simon Sauter
Simon Sauter - avatar