Question: How do I pop up an alert in JavaScript?

I tried `alert"HELLO"` but that didn't work.

Can someone tell me the correct syntax?

Answer: 
There are a few ways.

1. Use your web browser, type this code in address bar.

`javascript:alert("Hello World!")`
2. Open web developer in your web browser, go to console and type:

`alert("Hello World!")`
3. Type the code in .html or .js code as shown in other answers above.
Just add parentheses and enclosed it within the script tag.

```
<script type="text/javascript" >
  alert("hello");
</script>

```