I began to study the "javascript".
in html source code
<!Doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<button id="test_button">Test</button>
<p id="test">Hello World</p>
<!-- script -->
<script src="test.js"></script>
</body>
</html>
in javascript source code
"use strict";
$(function() {
document.getElementById("test_button").onclick = test_click;
function test_click() {
document.getElementById("test").innerHTML = "HI";
}
});
Where's wrong?