create excercise for javascript

This commit is contained in:
Andreas Zweili 2017-05-13 11:08:31 +02:00
parent 9c260d8f3d
commit 1d40b7f485
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<head>
<script type="text/javascript" src="helloworld.js"></script>
<title>JavaScript</title>
</head>
<body onload="showHelloWorld();">
<h1>JavaScript</h1>
</body>
</html>

View File

@ -0,0 +1,3 @@
function showHelloWorld() {
alert('Hello World.');
}