-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path004-for-statement.html
52 lines (48 loc) · 2.4 KB
/
004-for-statement.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>for statement</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- add Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/global.css">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Page Content -->
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h1 id="message">for statement</h1>
<p class="lead">Write a for statement like the example we just saw.</p>
</div>
<div class="col-lg-12">
<ol>
<li>Open <kbd>js/004-for-statement.js</kbd> in Sublime Text.</li>
<li>Review the MDN documentation on the for statement <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for" target="_blank">here</a>.</li>
<li>Write a for statement that logs "iteration <var>i</var>" to the console 10 times. The <var>i</var> should be an integer representing the number of that iteration.
<ul>
<li>Hint: It should look a lot like the example on MDN.</li>
</ul>
</li>
</ol>
</div>
<div class="col-lg-12 text-center footer">
<ul class="list-unstyled">
<li><a href="003.2-lexical.html"><< Prev</a> | <a href="005-arrays.html">Next >></a></li>
<li>Intermediate JavaScript & jQuery - <a href="https://twitter.com/ev_blurbs">Evan Johnson</a></li>
</ul>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
<script src="js/004-for-statement.js"></script>
</body>
</html>