-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathW.html
92 lines (89 loc) · 3.25 KB
/
W.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<html>
<head>
<title>The JavaScript Encyclopedia: W</title>
<link rel="stylesheet" href="encyclopedia.css" type="text/css">
</head>
<body><h1>W</h1>
<h2 id="while">while <a href="R.html#reserved word"><strong>reserved word</strong></a></h2>
<p>See <a href="D.html#do statement"><code>do</code> statement</a>.</p>
<h3 id="while statement"><code>while</code> statement</h3>
<p>Blah.</p>
<h2 id="whitespace">whitespace</h2>
<p>Whitespace characters are used in a <a href="C.html#compilation unit">compilation unit</a> to separate <a href="N.html#name">name</a> tokens and to improve the readability of the text. They are called whitespace characters because they do not make any marks. They leave the paper white, creating space around the characters that make marks.</p>
<p>The whitespace characters include</p>
<table border="1">
<tr>
<th><a href="U.html#Unicode escape sequence">Unicode escape sequence</a></th>
<th>alt</th>
<th>character name</th>
<th><a href="L.html#line terminator">line terminator</a></th>
</tr>
<tr>
<td><code>\u0009</code></td>
<td><code>\t</code></td>
<td><tab></td>
<td> </td>
</tr>
<tr>
<td><code>\u000A</code></td>
<td><code>\n</code></td>
<td><lf> <dfn>line feed</dfn></td>
<td>yes</td>
</tr>
<tr>
<td><code>\u000B</code></td>
<td><code>\v</code></td>
<td><vt> <dfn>vertical tab</dfn></td>
<td> </td>
</tr>
<tr>
<td><code>\u000C</code></td>
<td><code>\f</code></td>
<td><ff> <dfn>form feed</dfn></td>
<td> </td>
</tr>
<tr>
<td><code>\u000D</code></td>
<td><code>\r</code></td>
<td><cr> <dfn>carriage return</dfn></td>
<td>yes</td>
</tr>
<tr>
<td><code>\u0020</code></td>
<td> </td>
<td><sp> <dfn>space</dfn></td>
<td> </td>
</tr>
<tr>
<td><code>\u00A0</code></td>
<td> </td>
<td><nbsp> <dfn>non breaking space</dfn></td>
<td> </td>
</tr>
<tr>
<td><code>\u2028</code></td>
<td> </td>
<td><ls> <dfn>line separator</dfn></td>
<td>yes</td>
</tr>
<tr>
<td><code>\u2029</code></td>
<td> </td>
<td><ps> <dfn>paragraph separator</dfn></td>
<td>yes</td>
</tr>
<tr>
<td><code>\FFFE</code></td>
<td> </td>
<td><bom> <dfn>byte order mark</dfn></td>
<td> </td>
</tr>
</table>
<p>Four of the whitespace characters are also line terminator characters. A <a href="L.html#line terminator">line terminator</a> character identifies the end of a line of program text. This is important in <a href="S.html#semicolon insertion">semicolon insertion</a>, and in the formation of a <a href="C.html#comment">comment</a> or <a href="S.html#string literal">string literal</a>.</p>
<p>In addition to the characters above, characters in the <a href="U.html#Unicode">Unicode</a> general category of Zs (separator, space) are also treated as whitespace. </p>
<p class="es3">ES3 did not treat <bom> <dfn>byte order mark</dfn> as whitespace.</p>
<h2 id="with">with <a href="R.html#reserved word"><strong>reserved word</strong></a></h2>
<h3 id="with statement"><code>with</code> statement</h3>
<p>The with statement was a feature of ES3 that has been eliminated from ES5.</p>
</body>
</html>