LEARNING JAVASCRIPT - Trang 350

simple server creation,

271

algebraic functions

exponentiation,

232

logarithmic functions,

233

miscellaneous,

233

pseudorandom number generation,

234

algorithms,

184

,

229

alteration,

242

ancestor nodes,

261

anchoring,

253

AND operator (&&),

89

-

93

anonymous functions,

112

application development

automating repetitive tasks,

11

,

23

benefits of browser-based programs,

2

browser selection,

2

code repository,

7

comment syntax,

4

drawing graphics primitives,

9

file creation,

5

file loading,

7

handling user input,

12

Hello World program,

1

,

13

HTML elements,

6

JavaScript console,

7

linking to jQuery,

8

object creation,

10

text editor features,

3

text editor selection,

3

troubleshooting,

1

(see also development tools)

apply keyword,

115

arguments

assigning,

10

,

106

default,

109

defined,

105

destructuring,

108

formal vs. actual,

105

,

117

inside vs. outside functions,

107

vs. operands,

81

providing multiple,

107

vs. variables,

105

arguments variable,

109

arithmetic operators,

81

-

83

Array constructor,

135

Array object,

49

Array.prototype.forEach,

153

Array.prototype.join method,

143

arrays

adding multiple elements to ends of,

133

adding/removing elements anywhere,

134

adding/removing elements at either end,

133

basics of,

131

creating,

131

cutting/replacing elements within,

134

deleted or never-defined elements in,

143

destructuring,

108

filling with specified values,

135

functions in,

193

getting subarrays,

134

iterating over,

148

joining value of elements together,

143

modifying in place vs. returning new,

132

vs. objects,

147

removing unwanted items from,

139

reversing/sorting,

135

searching,

136

special operators for,

99

summary of Array methods,

144

transforming elements in,

138

transforming entire,

140

-

143

arrow notation (=>),

113

,

181

assignment expressions,

80

,

96

asterisk (*),

179

,

246

asynchronous programming

benefits of,

201

callbacks,

200

-

205

concept of,

200

generators,

212

-

216

IIFEs and,

189

key points,

217

managing,

194

,

199

promises,

205

-

212

user input and,

12

uses for,

199

Atom text editor,

3

attributes,

303

autocompletion,

4

B

Babel,

15

,

25

.babelrc file,

25

backreferences,

249

backslash character (\),

17

,

41

,

246

backtick character (`) string interpolation,

40

,

42

bar, bitwise OR operator (|),

242

326 | Index

Liên Kết Chia Sẽ

** Đây là liên kết chia sẻ bới cộng đồng người dùng, chúng tôi không chịu trách nhiệm gì về nội dung của các thông tin này. Nếu có liên kết nào không phù hợp xin hãy báo cho admin.