forked from js-workshops/intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path001.1-syntax.html
60 lines (55 loc) · 2.21 KB
/
001.1-syntax.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
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Syntax</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>Syntax</h1>
<p class="lead">Create strings in JavaScript with the reserved characters.</p>
</div>
<div class="col-lg-12">
<blockquote>
<p>In JavaScript, you can declare strings with single or double quotation marks. A backward slash (<code>\</code>) can escape a character.</p>
</blockquote>
<ol>
<li>Open the console in Chrome.</li>
<li>Type a string in the console with double quotation marks.
<ul>
<li>Hint: <code>"String goes between the double quotation marks."</code></li>
</ul>
</li>
<li>Type a string in the console with single quotation marks.</li>
<li>Type another string in the console with single quotation marks. This time, add a single quote mark inside the string.
<ul>
<li>Hint: You need to escape the single quote mark inside the string.</li>
</ul>
</li>
</ol>
</div>
<div class="col-lg-12 text-center footer">
<ul class="list-unstyled">
<li><a href="001.2-syntax.html">Next >></a></li>
<li>Intro to JavaScript & jQuery - <a href="https://twitter.com/ev_blurbs">Evan Johnson</a></li>
</ul>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</body>
</html>