-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable.html
More file actions
21 lines (18 loc) · 862 Bytes
/
variable.html
File metadata and controls
21 lines (18 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
<title>blackrose9-JS-Phase1</title>
</head>
<body>
<!-- introductory statements introducing the page -->
<h2>Variables- JS Phase 1 Excercise</h2>
<p>The two buttons below demonstrate, through the console, the two questions given in the JS Phase 1 assignment. Give it a try!</p>
<!-- The buttons below call the functions in the external js file 'variable.js' -->
<button type="button" onclick="ageCalculator()">Question1</button>
<button type="button" onclick="foodCalculator()">Question2</button>
<!-- This paragraph outputs a statement from the .js file -->
<p id="outputq2"></p>
<!-- The code below calls the javascript file being used by this HTML document -->
<script src="variables.js"></script>
</body>
</html>