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: 
Just add parantheses

```
alert("Hello");

```
```
<html>
<head>
<script type="text/javascript">
  function myFunction(){
    alert("hello");
  }
</script>
 </head>
<body>
<input type="submit" onClick="myFunction()">
</body>
</html>

```

Here is the JavaScript function which has an alert box. This function is called by clicking on the submit button.