Before you beginLesson 1: Introducing JavaScriptUnderstanding JavaScriptUnderstanding the role of dataUsing expressions to produce dataUnderstanding the number typeSpecial ValuesArithmeticOperator PrecedenceModuloUnderstanding the string typeUsing unary operatorsUnderstanding the Boolean typeLogical OperatorsShort-Circuiting OperatorsUsing statementsUsing variablesRules for naming variablesNaming variablesCreating the environmentWorking with functionsUsing function declarationsUsing function expressionsDeciding which argumentsUsing the browser’s built-in alert, prompt, and confirm functionsScoping variablesNesting functions and nested local variable scopingConverting to a different typeUsing the Number functionUsing the String functionConditional programmingUsing the if/else keywordsUsing the switch keywordDetermining whether a variable has a valueNo value coalescing operatorsDetermining whether two values have the same type and are equalImplementing code loopsImplementing the while loopImplementing the do loopImplementing the for loopBreaking out of a loopHandling errorsLesson summaryLesson reviewLesson 2: Writing, testing, and debugging JavaScriptHello World from JavaScriptWriting test-driven codeSetting up QUnit with ASP.NET applicationsSetting up QUnit-Metro with Windows 8 applicationsUsing the script tagHandling browsers that don’t support JavaScriptInline JavaScript vs. external JavaScript filesPlacing your script elementsUsing the Visual Studio .NET JavaScript debuggerSetting a breakpointExamining variablesStepping through the codeLesson summaryLesson reviewLesson 3: Working with objectsWorking with arraysCreating and populating an arrayAccessing the array itemsModifying the array itemsUnderstanding array propertiesUsing array methodsAccessing DOM objectsNavigating the DOMWorking with eventsEvent capturing and event bubblingSubscribing to an eventUnsubscribing from an eventCanceling event propagationPreventing the default operationWorking with “this”Window event referenceForm event referenceKeyboard event referenceMouse event referenceMedia event referenceLesson summaryLesson reviewPractice exercisesExercise 1: Create a calculator webpageExercise 2: Add the QUnit testing frameworkSuggested practice exercisesAnswersLesson 1Lesson 2Lesson 3