-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_js.html
More file actions
28 lines (25 loc) · 1.03 KB
/
example_js.html
File metadata and controls
28 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript First Exercise</title>
</head>
<body>
<h1>Welcome to your First Exercise!</h1>
<p>For this exercise we will be creating a weight metric converter</p>
<p>We will take in a number in pounds (lbs) and convert it to kilograms (kg).
Right now we only know enough to to this one way, but later on we wil learn
how to add logic to this sort of problem!
</p>
<p>To complete this exercise do the following:</p>
<ul>
<li>Link this HTML file (JS_First_Exercise.html) to you own .js file</li>
<li>Use Javascript to accept a number input in pounds (lbs)</li>
<li>Then in your js file convert this number to kilograms (* 0.454)</li>
<li>Afterwards report back in an alert what the weight is in kg</li>
<li>Then log/write "Conversion Completed" to the console</li>
</ul>
<!-- This links to the solution .js file, link to your own first! -->
<script src="myscript_example.js"></script>
</body>
</html>