+ 4
no NodeJS is server side so alerts wont work.
try console.log("Hi Doggy!"); and you'll get console output from terminal or cmd, whatever youre using.
And idk if there are plugins for alerts, but i doubt it since node js shouldnt run on the client.
+ 4
The alert() works only on browsers. It belongs to window object.
When there's no graphical interface in nodejs there's no way how something like alert box could be done.
Nodejs runs in your command line. But you can use it with html and javascript
+ 4
talentless_guy No problem!