<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<script type=’text/javascript’ src=’js/functions.js’></script>
<title>Document</title>
</head>
<body>
<p>Before the script…</p>
<script>
alert( ‘Hello, world!’ );
</script>
<script>
hello();
</script>
<p>After the script…</p>
</body>
</html>
Aqui es pot veure el resultat: