0
Why the alert function is not running on node js?
I used the alert function on node js to display the squares of the given numbers. However, I am getting an error message that says "alert is not defined at square". When I implemented the same code on the html file using the script tag, the console didn't show any error messages. I have inserted the two files here. Please explain what's preventing alert() from displaying the expected result? I have gone cray cray now ;-; https://code.sololearn.com/cJQ5EgUzzUms/?ref=app https://code.sololearn.com/W8jcNFz30mX7/?ref=app
3 ответов
+ 2
Ah, I see. Thank you ^-^