Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

642


number primitive type
arithmetic operations, 68
described, 67
operator precedence, 68–69
special values supported, 68
number types, 67–69
numbers, validating in forms, 329
NVDA (Nonvisual Desktop Access) devices,
206–207

O
<object> element
creating nested browser context, 52
data attribute, 51
declare attribute, 322
described, 34, 51
embedding plug-in content, 50–52
form attribute, 51
height attribute, 51
name attribute, 51
<param> tag and, 52
passing parameters to objects, 52
type attribute, 51
usemap attribute, 51
width attribute, 51
object literals, 263–265
Object object
constructor() method, 265
described, 67
hasOwnProperty() method, 265
isPrototypeOf() method, 265
propertyIsEnumerable() method, 265
prototype property, 271–274
toLocalString() method, 265
toString() method, 265
valueOf() method, 265
object-oriented programming
JavaScript caveat, 263

naming variables, 72–73
<nav> element, 34, 208, 211
navigating DOM, 112–114
Navigation App template, 7
navigation class, 212
navigator.geolocation global variable, 540
nesting
elements, 179, 210
functions, 78
operations, 398–399
new keyword, 108, 269
no-quirks mode, 40
no value coalescing operators, 83–84
node package manager (npm), 342
Node.js platform
creating Hello World program, 342–344
creating Node.js module, 344–345
creating Node.js package, 345–354
creating RESTful web service, 366–368
described, 341
express framework, 354–363
installing, 342
lesson summary and review, 363, 391
practice exercises, 382–386, 390
Socket.IO library and, 424
nonbreaking space, 41–42
Nonvisual Desktop Access (NVDA) devices,
206–207
normalizing HTML documents, 217
<noscript> element, 34
not (!) logical operator, 70–71
:not pseudo class, 149
noupdate event, 610
npm (node package manager), 342
:nth-child(formula) pseudo class, 149
NuGet package-management system, 90, 95, 286
null primitive type, 67
Number() function, 78–79
Number object, 67

naming variables
Free download pdf