Question: I'm having a tough time enabling javascript in chrome on my own webpage. Other websites seem to be able to do it pretty easily. Here's my prtty simple code but the start() function just wouldn't work.

```
<doctype html>
<html>
<head>
    <script type = "javascript">
        function start() {
            alert("Hi");
        }
    </script>
</head>
<body onload = "start()">
    Hi
</body>
</html>

```

Answer: 
You're using wrong [**`type`** Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#Attributes), it should be

```
<script type="text/javascript">

```

or simply 

```
<script> </script>  //by default is type is "text/javascript"

```

Also change `<!DOCTYPE html>`
```
<!doctype html>
<html>
<head>
  <script>
        function start() {
            alert("Hi");           
        }
    </script>
</head>
<body onload = "start()">
    Hi
</body>
</html>

```