alert()in javascript is showing reference error and alert() is not defined. how do i solve this? even googled it everywhere there is no such solution to my problem.
Hey @npratikgt12!
You should be using HTML/CSS/JS if you want to run JavaScript by itself, instead of running it within nodejs, which doesn’t have alert()
.
4 Likes
Instead of using alert()
to print things, use console.log()
.
5 Likes