-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjsFlashcards.json
More file actions
266 lines (262 loc) · 7.32 KB
/
jsFlashcards.json
File metadata and controls
266 lines (262 loc) · 7.32 KB
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
[{
"explanation": "The most common variable. Can be reassigned but only accessed within a function. Variables defined with var move to the top when code is executed.( Use of var is discouraged since the release of ES6)",
"category": "Variables",
"name": "var",
"subtype": "var"
}, {
"explanation": "Cannot be reassigned and not accessible before they appear within the code.",
"category": "Variables",
"name": "const",
"subtype": "const"
}, {
"explanation": "Similar to const, however, let variable can be reassigned but not re-declared.",
"category": "Variables",
"name": "let",
"subtype": "let"
}, {
"explanation": "Join several arrays into one",
"category": "Arrays",
"name": "Array Method",
"subtype": "concat"
}, {
"explanation": "Returns the first position at which a given element appears in an array",
"category": "Arrays",
"name": "Array Method",
"subtype": "indexOf()"
}, {
"explanation": "Combine elements of an array into a single string and return the string",
"category": "Arrays",
"name": "Array Method",
"subtype": "join()"
}, {
"explanation": "Gives the last position at which a given element appears in an array",
"category": "Arrays",
"name": "Array Method",
"subtype": "lastIndexOf()"
}, {
"explanation": "Removes the last element of an array",
"category": "Arrays",
"name": "Array Method",
"subtype": "pop()"
}, {
"explanation": "Add a new element at the end",
"category": "Arrays",
"name": "Array Method",
"subtype": "push()"
}, {
"explanation": "Reverse the order of the elements in an array",
"category": "Arrays",
"name": "Array Method",
"subtype": "reverse()"
}, {
"explanation": "Remove the first element of an array",
"category": "Arrays",
"name": "Array Method",
"subtype": "shift()"
}, {
"explanation": "Pulls a copy of a portion of an array into a new array",
"category": "Arrays",
"name": "Array Method",
"subtype": "slice()"
}, {
"explanation": "Sorts elements alphabetically",
"category": "Arrays",
"name": "Array Method",
"subtype": "sort()"
}, {
"explanation": "Adds elements in a specified way and position",
"category": "Arrays",
"name": "Array Method",
"subtype": "splice()"
}, {
"explanation": "Converts elements to strings",
"category": "Arrays",
"name": "Array Method",
"subtype": "toString()"
}, {
"explanation": "Adds a new element to the beginning",
"category": "Arrays",
"name": "Array Method",
"subtype": "unshift()"
}, {
"explanation": "Returns the primitive value of the specified object",
"category": "Arrays",
"name": "Array Method",
"subtype": "valueOf()"
}, {
"explanation": "Addition",
"category": "Operators",
"name": "Basic Operators",
"subtype": "+"
}, {
"explanation": "Subtraction",
"category": "Operators",
"name": "Basic Operators",
"subtype": "-"
}, {
"explanation": "Multiplication",
"category": "Operators",
"name": "Basic Operators",
"subtype": "*"
}, {
"explanation": "Division",
"category": "Operators",
"name": "Basic Operators",
"subtype": "/"
}, {
"explanation": "Modulus (Remainder)",
"category": "Operators",
"name": "Basic Operators",
"subtype": "%"
}, {
"explanation": "Grouping operator",
"category": "Operators",
"name": "Basic Operators",
"subtype": "(..)"
}, {
"explanation": "Increment Numbers",
"category": "Operators",
"name": "Basic Operators",
"subtype": "++"
}, {
"explanation": "Decrement Numbers",
"category": "Operators",
"name": "Basic Operators",
"subtype": "--"
}, {
"explanation": "Equal to",
"category": "Operators",
"name": "Comparison Operators",
"subtype": "=="
}, {
"explanation": "Equal Value and equal type",
"category": "Operators",
"name": "Comparison Operators",
"subtype": "==="
}, {
"explanation": "Not equal",
"category": "Operators",
"name": "Comparison Operators",
"subtype": "!="
}, {
"explanation": "Not equal value or not equal type",
"category": "Operators",
"name": "Comparison Operators",
"subtype": "!=="
}, {
"explanation": "Greater than",
"category": "Operators",
"name": "Comparison Operators",
"subtype": ">"
}, {
"explanation": "Less than",
"category": "Operators",
"name": "Comparison Operators",
"subtype": "<"
}, {
"explanation": "Greater than or equal to",
"category": "Operators",
"name": "Comparison Operators",
"subtype": ">="
}, {
"explanation": "Ternary Operator",
"category": "Operators",
"name": "Comparison Operators",
"subtype": "?"
}, {
"explanation": "Logical and",
"category": "Operators",
"name": "Logical Operators",
"subtype": "&&"
}, {
"explanation": "Logical or",
"category": "Operators",
"name": "Logical Operators",
"subtype": "||"
}, {
"explanation": "Logical not",
"category": "Operators",
"name": "Logical Operators",
"subtype": "!"
}, {
"explanation": "Output data in an alert box in the browser window",
"category": "Functions",
"name": "Outputting Data",
"subtype": "alert()"
}, {
"explanation": "Opens up a yes/no dialog and returns true/false depending on user click",
"category": "Functions",
"name": "Outputting Data",
"subtype": "confirm()"
}, {
"explanation": "Writes information to the browser console, good for debugging purposes",
"category": "Functions",
"name": "Outputting Data",
"subtype": "console.log()"
}, {
"explanation": "Write directly to the HTML document",
"category": "Functions",
"name": "Outputting Data",
"subtype": "document.write()"
}, {
"explanation": "Creates an dialogue for user input",
"category": "Functions",
"name": "Outputting Data",
"subtype": "prompt()"
}, {
"explanation": "Decodes a Uniform Resource Identifier (URI) created by encodeURI or similar",
"category": "Functions",
"name": "Global Functions",
"subtype": "decodeURI()"
}, {
"explanation": "Decodes a URI component",
"category": "Functions",
"name": "Global Functions",
"subtype": "decodeURIComponent()"
}, {
"explanation": "Encodes a URI into UTF-8",
"category": "Functions",
"name": "Global Functions",
"subtype": "encodeURI()"
}, {
"explanation": "Encodes a URI component into UTF-8",
"category": "Functions",
"name": "Global Functions",
"subtype": "encodeURIComponent()"
}, {
"explanation": "Evaluates JavaScript code represented as a string",
"category": "Functions",
"name": "Global Functions",
"subtype": "eval()"
}, {
"explanation": "Determines whether a passed value is a finite number",
"category": "Functions",
"name": "Global Functions",
"subtype": "isFinite()"
}, {
"explanation": "Determines whether a value is NaN or not",
"category": "Functions",
"name": "Global Functions",
"subtype": "isNaN()"
}, {
"explanation": "Returns a number converted from its argument",
"category": "Functions",
"name": "Global Functions",
"subtype": "Number()"
}, {
"explanation": "Parses an argument and returns a floating point number",
"category": "Functions",
"name": "Global Functions",
"subtype": "parseFloat()"
}, {
"explanation": "Parses its argument and returns an integer",
"category": "Functions",
"name": "Global Functions",
"subtype": "parseInt()"
},{
"explanation": "The most common way to create a loop in Javascript. The loop tells computers to repeat a given block of code on its own. The for loop typically includes an iterator variable and three expressions separated by semi-colons (an initialization, a stopping condition, and an iteration statement)--Syntax: for (before loop; condition for loop; execute after loop) { // what to do during the loop}",
"category": "Loops",
"name": "Loops",
"subtype": "for (){}"
}
]