LEARNING JAVASCRIPT - Trang 358

global vs. local packages,

22

installing,

21

installing packages with,

22

npm modules,

284

versions of,

22

null type,

45

number formatting

advanced,

231

built-in support for,

229

different bases,

231

exponential notation,

230

fixed decimals,

230

fixed precision,

230

Number type,

48

Number.EPSILON constant,

87

Number.prototype.toFixed,

230

numbers

approximation of,

38

as strings,

44

comparing,

87

JavaScript handling of,

229

(see also math functions)

Numeral.js,

231

numeric literals,

36

O

Object class,

158

object instances,

149

object property configuration

modifying property access,

308

property attributes,

303

property types,

301

protecting objects,

305

Object.defineProperty,

304

Object.keys,

148

,

159

objects

adding properties to,

46

Array,

49

vs. arrays,

147

basics of,

46

contents of,

46

creating,

10

Date,

51

defined,

149

displaying properties of,

47

flexibility of,

38

functions as properties of,

109

functions in,

48

listing contents of,

147

Map and WeakMap,

52

,

163

-

167

vs. maps,

167

modifying,

106

naming conventions,

46

Number, String, and Boolean types,

48

vs. primitives,

47

,

106

RegExp,

51

special operators for,

99

string representation of,

159

trailing commas in,

50

OOP (object-oriented programming)

basic vocabulary of,

149

basics of,

149

benefits of,

161

class and instance creation,

150

classes as functions,

152

dynamic properties,

151

,

301

hierarchical categorization in,

149

inheritance,

156

multiple inheritance,

159

polymorphism,

157

property enumeration,

158

prototype methods,

153

static methods,

155

,

229

string representation,

159

open comment (/*),

4

open comment (HTML) (<!--),

5

operands,

80

operation expressions,

79

operator precedence,

321

operators

AND, OR, and NOT,

89

-

93

arithmetic,

81

-

83

comma,

71

,

93

comparison,

85

conditional,

92

defined,

81

destructuring assignment,

98

grouping,

93

-

97

logical,

88

multiplication,

80

object and array,

99

operator precedence,

80

,

84

postfix and prefix,

83

relational,

86

ternary,

92

optional elements,

69

OR operator (||),

89

-

93

os module,

294

334 | 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.