LEARNING JAVASCRIPT - Trang 361

size property (maps and sets),

164

,

166

slice method (arrays),

134

Smith, Ken,

219

some method (arrays),

137

sort method (arrays),

135

special characters,

41

splice method (arrays),

78

,

134

spread operator (…),

108

,

116

,

165

,

262

square brackets ([]),

69

,

131

square root,

232

Stack Overflow,

313

standalone blocks,

121

starting/stopping conditions (loops),

56

static methods,

155

,

229

Steele, Guy,

xvi

stopping conditions (recursion),

197

streams,

295

strict equality,

85

strict mode,

128

,

304

string (text) variables,

34

string literals,

36

String type,

48

String.prototype,

237

String.prototype.match,

239

String.prototype.replace,

238

strings

concatenation of,

88

,

143

converting objects to,

53

converting to numbers,

52

defined,

40

escaping,

40

matching/replacing,

237

multiline,

43

numbers as,

44

representation of objects,

159

special characters,

41

template strings,

42

,

100

subarrays,

134

subexpressions (regexes),

247

Sublime Text,

3

subprograms,

183

subroutines,

183

-

185

subtraction operator (-),

82

sudo command (Unix),

23

superclasses,

157

,

159

superusers (Unix),

23

Sussman, Gerald,

xvi

switch statements,

72

symbols,

45

,

161

,

301

syntax highlighting,

3

T

TDZ (temporal dead zone),

127

template strings,

42

,

100

terminal commas,

50

Terminal program,

17

ternary operators,

92

text editors

common features of,

3

selecting,

3

types of,

3

TextPad,

3

this keyword,

110

,

114

,

150

throw statements,

68

,

171

tilde (~) home directory shortcut (Unix),

17

,

229

time zones (TZs),

220

,

225

(see also dates and times)

times,

51

toString() method,

53

,

159

touch events (HTML),

271

Traceur,

25

trailing commas,

29

,

50

transcompilation

drawbacks of,

257

process of,

25

purpose of,

16

tools for,

15

,

25

-

27

transformations,

193

transpilation (see transcompilation)

traversal functions (trees),

260

Treehouse,

18

TreeWalker object (HTML),

261

trigonometric functions,

235

troubleshooting

bind keyword,

116

class names,

153

code syntax,

1

debugging with toString method,

159

generator values,

182

implicit globals,

128

initial data values on instances,

154

literals vs. identifiers,

36

regular expressions,

248

,

251

throwing exceptions,

174

unique IDs,

261

variable names,

34

truth tables,

89

Index | 337