forked from sunnychen90/TheJavaScriptEncyclopedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathG.html
131 lines (108 loc) · 6.71 KB
/
G.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<html>
<head>
<title>The JavaScript Encyclopedia: G</title>
<link rel="stylesheet" href="encyclopedia.css" type="text/css">
</head>
<body><h1>G</h1>
<h2 id="getDate">get</h2>
<p>See <a href="O.html#object">object</a> and <a href="O.html#object literal">object literal</a>.</p>
<h2>getDate</h2>
<h3 id="getDate Date prototype function"><code>getDate</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getFullYear">getFullYear</h2>
<h3 id="getFullYear Date prototype function"><code>getFullYear</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getHours">getHours</h2>
<h3 id="getHours Date prototype function"><code>getHours</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getMilliseconds">getMilliseconds</h2>
<h3 id="getMilliseconds Date prototype function"><code>getMilliseconds</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getMinutes">getMinutes</h2>
<h3 id="getMinutes Date prototype function"><code>getMinutes</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getMonth">getMonth</h2>
<h3 id="getMonth Date prototype function"><code>getMonth</code> date prototype function</h3>
<p>Blah.</p>
<h2>getOwnProperties</h2>
<h3><code>getOwnProperties</code> <a href="O.html#Object function"><code>Object</code> function</a></h3>
<p>Blah.</p>
<h2>getOwnPropertyDescriptor</h2>
<h3><code>getOwnPropertyDescriptor</code> <a href="O.html#Object function"><code>Object</code> function</a></h3>
<p>Blah.</p>
<h2>getPrototypeOf</h2>
<h3><code>getPrototypeOf</code> <a href="O.html#Object function"><code>Object</code> function</a></h3>
<p>Blah.</p>
<h2 id="getSeconds">getSeconds</h2>
<h3 id="getSeconds Date prototype function"><code>getSeconds</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getTime">getTime</h2>
<h3 id="getTime Date prototype function"><code>getTime</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getUTCDate">getUTCDate</h2>
<h3 id="getUTCDate Date prototype function"><code>getUTCDate</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getUTCFullYear">getUTCFullYear</h2>
<h3 id="getUTCFullYear Date prototype function"><code>getUTCFullYear</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getUTCHours">getUTCHours</h2>
<h3 id="getUTCHours Date prototype function"><code>getUTCHours</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getUTCMilliseconds">getUTCMilliseconds</h2>
<h3 id="getUTCMilliseconds Date prototype function"><code>getUTCMilliseconds</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getUTCMinutes">getUTCMinutes</h2>
<h3 id="getUTCMinutes Date prototype function"><code>getUTCMinutes</code> date prototype function</h3>
<p>Blah.</p>
<h2 id="getUTCMonth">getUTCMonth</h2>
<h3 id="getUTCMonth Date prototype function">getUTCMonth date prototype function</h3>
<p>Blah.</p>
<h2 id="getYear">getYear</h2>
<h3 id="getYear Date prototype function"><code>getYear</code> date prototype function</h3>
<p>Blah.</p>
<h2>global</h2>
<p>A <a href="P.html#program">program</a> runs in a context, which is sometimes called the global context or <em>the</em> global object. The global context is like other objects in that it is a container of key/value pairs. The keys are the names of global variables, and the values are the values of those variables. The global context is initialized with global functions, the global objects <code>JSON</code> and <code>Math</code>, and the global variables <a href="I.html#Infinity"><code>Infinity</code></a>, <a href="N.html#NaN"><code>NaN</code></a>, and <a href="U.html#undefined"><code>undefined</code></a> before the first <a href="C.html#compilation unit">compilation unit</a> gets its <a href="O.html#object literal">turn</a>.</p>
<p>Some environments, such as web browsers, can have many global objects, one for each frame or window. The browser adds its own variables to the global context, including <code>document</code>, <code>navigator</code>, and <code>window</code>. </p>
<p>Global variables can be created in a <a href="C.html#compilation unit">compilation unit</a> with the <a href="V.html#var statement"><code>var</code> statement</a> or the <a href="F.html#function statement">function statement</a>. Within a <a href="F.html#function body">function body</a>, if a </p>
<h3>global function</h3>
<p>These functions are available in the global context. An implementation is allowed to add additional global functions.</p>
<ul>
<li><a href="Array global function"><code>Array</code> global function</a></li>
<li><a href="Boolean global function"><code>Boolean</code> global function</a></li>
<li><a href="Date global function"><code>Date</code> global function</a></li>
<li><a href="decodeURI global function"><code>decodeURI</code> global function</a></li>
<li><a href="decodeURIComponent global function"><code>decodeURIComponent</code> global function</a></li>
<li><a href="encodeURI global function"><code>encodeURI</code> global function</a></li>
<li><a href="encodeURIComponent global function"><code>encodeURIComponent</code> global function</a></li>
<li><a href="Error global function"><code>Error</code> global function</a></li>
<li><a href="eval global function"><code>eval</code> global function</a></li>
<li><a href="Function global function"><code>Function</code> global function</a></li>
<li><a href="isFinite global function"><code>isFinite</code> global function</a></li>
<li><a href="isNaN global function"><code>isNaN</code> global function</a></li>
<li><a href="Number global function"><code>Number</code> global function</a></li>
<li><a href="Object global function"><code>Object</code> global function</a></li>
<li><a href="parseFloat global function"><code>parseFloat</code> global function</a></li>
<li><a href="parseInt global function"><code>parseInt</code> global function</a></li>
<li><a href="RangeError global function"><code>RangeError</code> global function</a></li>
<li><a href="ReferenceError global function"><code>ReferenceError</code> global function</a></li>
<li><a href="RegExp global function"><code>RegExp</code> global function</a></li>
<li><a href="String global function"><code>String</code> global function</a></li>
<li><a href="SyntaxError global function"><code>SyntaxError</code> global function</a></li>
<li><a href="TypeError global function"><code>TypeError</code> global function</a></li>
<li><a href="URIError global function"><code>URIError</code> global function</a></li>
</ul>
<h3>global object</h3>
<p>The global context contains these objects:</p>
<ul>
<li><a href="J.html#JSON"><code>JSON</code></a></li>
<li><a href="M.html#Math"><code>Math</code></a></li>
</ul>
<p>Blah.</p>
<h2 id="Good Parts">Good Parts</h2>
<p>Blah.</p>
<h2 id="grammar">grammar</h2>
<p>Blah.</p>
<h2 id="grouping parentheses">grouping parentheses</h2>
<p>See <a href="special.html#leftparen) grouping"><code>()</code> grouping</a>.</p>
</body>
</html>