-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathF.html
75 lines (69 loc) · 3.71 KB
/
F.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
<html>
<head>
<title>The JavaScript Encyclopedia: F</title>
<link rel="stylesheet" href="encyclopedia.css" type="text/css">
</head>
<body><h1>F</h1>
<h2 id="false">false <strong>reserved word</strong></h2>
<p>The <a href="#false">false</a> value is one of the two immutable <a href="B.html#boolean">boolean</a> values. The <a href="#false">false</a> value is <a href="#falsy">falsy</a>. </p>
<p>The <a href="#false">false</a> value can be produced by a <a href="R.html#relational operator">relational operator</a>.</p>
<h3 id="false literal"><code>false</code> literal</h3>
<p>The <code>false</code> <a href="L.html#literal">literal</a> is a convenient way to access the <a href="#false">false</a> value.</p>
<pre>var found = false;</pre>
<h2 id="falsy">falsy</h2>
<p>Every value is either <a href="T.html#truthy">truthy</a> or <a href="#falsy">falsy</a>. These are the only values that are <a href="#falsy">falsy</a>:</p>
<ul>
<li><code>""</code> <dfn>empty string</dfn></li>
<li>0 <dfn>zero</dfn></li>
<li><code>false</code></li>
<li><code>NaN</code> <dfn>not a number</dfn></li>
<li><code>null</code></li>
<li><code>undefined</code></li>
</ul>
<p>All other values, including empty objects and empty arrays, are <a href="T.html#truthy">truthy</a>.</p>
<p>A falsy value can have consequences:</p>
<ul>
<li>in the condition part of an <a href="I.html#if statement">if statement</a>, the <code>else</code> branch is taken.</li>
<li>in the condition part of a <a href="L.html#loop statement">loop statement</a>, break out of the loop.</li>
<li>in the first operand of the <a href="special.html#ampersand& infix operator"><code>&&</code> infix operator</a> <dfn>and</dfn>, the result is the falsy value of the first operand.</li>
<li>in the first operand of the <a href="special.html#bar| infix operator"><code>||</code> infix operator</a> <dfn>or</dfn>, the result is the value of the second operand.</li>
<li>in the first operand of the <a href="special.html#question ternery operator"><code>?</code> ternery operator</a> <dfn>condition</dfn>, the result is the value of the third operand.</li>
<li>in bitwise operators, a falsy operand is treated the same as <code>0</code>.</li>
</ul>
<h2 id="filter">filter</h2>
<h3 id="filter Array prototype function"><code>filter</code> array prototype function</h3>
<p>Blah.</p>
<h2 id="finally">finally <a href="R.html#reserved word"><strong>reserved word</strong></a></h2>
<p>See <a href="T.html#try statement"><code>try</code> statement</a>.</p>
<h2 id="floor">floor</h2>
<h3 id="floor Math function"><code>floor</code> <code>Math</code> function</h3>
<p>Blah.</p>
<h2 id="for">for <a href="R.html#reserved word"><strong>reserved word</strong></a></h2>
<h3 id="for in statement"><code>for</code> <code>in</code> statement</h3>
<p>Blah.</p>
<h3 id="for statement"><code>for</code> statement</h3>
<p>Blah.</p>
<h2 id="forEach">forEach</h2>
<h3 id="forEach Array prototype function"><code>forEach</code> array prototype function</h3>
<p>Blah.</p>
<p>Example:</p>
<h2 id="free variable">free variable</h2>
<p>Blah.</p>
<h2>freeze</h2>
<h3><a href="F.html#freeze Object function"><code>freeze</code> <code>Object</code> function</a></h3>
<p>Blah.</p>
<h2 id="fromCharCode">fromCharCode</h2>
<h3 id="fromCharCode String function"><code>fromCharCode</code> <code>String</code> function</h3>
<p>Blah.</p>
<h2 id="function">function <a href="R.html#reserved word"><strong>reserved word</strong></a></h2>
<p>Blah.</p>
<h3>function body</h3>
<p>Blah.</p>
<h3 id="Function global function"><code>Function</code> global function</h3>
<p>Blah.</p>
<h3 id="function literal"><code>function</code> literal</h3>
<p>Blah.</p>
<h3 id="function statement"><code>function</code> statement</h3>
<p>Blah.</p>
</body>
</html>