The javascript
<html>
<head>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<button onclick="sayHello('world')">Click Me</button>
</body>
</html>
gives a Uncaught ReferenceError: sayHello is not defined error.