How do I pop up an alert in Javascript?
I tried alert\"HELLO\" but that didn\'t work.
alert\"HELLO\"
Can someone tell me the correct syntax?
Oh by the
There are a few ways.
Use your web browser, type this code in address bar.
javascript:alert("Hello World!")
Open web developer in your web browser, go to console and type:
alert("Hello World!")
Type the code in .html or .js code as shown in other answers above.