202 Pages · 11.72 mb ·
Children & Youth
- Title Page (Page 3) - Copyright Page (Page 4) - Table of Contents (Page 7) - Introduction (Page 11) - About This Book (Page 11) - Foolish Assumptions (Page 13) - Icons Used In This Book (Page 13) - Beyond the Book (Page 14) - Where to Go from Here (Page 14) - Part I What Is JavaScript? Alert! JavaScript Is Awesome! (Page 15) - Chapter 1 Programming the Web (Page 17) - What Is Programming? (Page 18) - Talking to Computers (Page 19) - Choosing a Language (Page 21) - What Is JavaScript? (Page 22) - Get Your Browser Ready (Page 25) - Opening the Web Developer Tools (Page 26) - Introducing the JavaScript Console (Page 28) - Running Your First JavaScript Commands (Page 29) - Having Fun with Math (Page 31) - Chapter 2 Understanding Syntax (Page 32) - Saying Precisely What You Mean (Page 33) - Making a Statement (Page 34) - Following the Rules (Page 35) - Chapter 3 Giving and Receiving Data (Page 43) - Mastering Variables (Page 44) - Understanding Data Types (Page 48) - Prompting the User for Input (Page 52) - Responding to Input (Page 54) - Combining Input and Output (Page 58) - Chapter 4 Fiddling with Web Applications (Page 61) - Introducing JSFiddle (Page 62) - Creating a JSFiddle Account (Page 1) - Sharing Your Fiddle (Page 1) - Saving Your App (Page 1) - Part II Animating the Web (Page 1) - Chapter 5 JavaScript and HTML (Page 1) - Writing HTML (Page 1) - Knowing Your HTML Elements (Page 1) - Adding Attributes to Elements (Page 1) - Changing HTML with JavaScript (Page 1) - Chapter 6 JavaScript and CSS (Page 1) - Meet Douglas the JavaScript Robot (Page 1) - CSS Basics (Page 1) - CSS Properties Give You Style (Page 1) - Customize Your Own JavaScript Robot! (Page 1) - Chapter 7 Building an Animated Robot (Page 1) - Changing CSS with JavaScript (Page 1) - Make Douglas Dance! (Page 1) - Part III Getting Operations (Page 1) - Chapter 8 Building Your Dream Car with Operands (Page 1) - Knowing Your Operands (Page 1) - Working with Objects (Page 1) - Configuring Your Dream Car (Page 1) - Chapter 9 Putting It Together with Operators (Page 1) - Introducing the Super‐Calculator (Page 1) - Super‐Calculator Tricks (Page 1) - Chapter 10 Creating Your Own JavaScript Word Game (Page 1) - Creating a Variable Story (Page 1) - Creating the Word Replacement Game (Page 1) - Part IV Arrays and Functions (Page 1) - Chapter 11 Creating and Changing Arrays (Page 1) - What Are Arrays? (Page 1) - Creating and Accessing Arrays (Page 1) - Changing Array Element Values (Page 1) - Working with Array Methods (Page 1) - Learning the Ways of Arrays (Page 1) - Chapter 12 Making It Functional (Page 1) - Understanding Functions (Page 1) - Knowing What Functions Are Made Of (Page 1) - Building Function Junction (Page 1) - Chapter 13 Creating a Wish List Program (Page 1) - Introducing the Wish List Program (Page 1) - Forking the Code (Page 1) - Writing the HTML (Page 1) - Writing the JavaScript Code (Page 1) - Part V Freedom of Choice (Page 1) - Chapter 14 Making Decisions with the If...Else Statement (Page 1) - Boolean Logic (Page 1) - Introducing if...else Statements (Page 1) - Combining Comparisons with Logical Operators (Page 248) - Freshening Up the JavaScript Pizzeria (Page 250) - Chapter 15 Doing Different Things with Switch (Page 262) - Writing a Switch (Page 263) - Building the Activity‐of‐the‐Day Calendar (Page 265) - Chapter 16 Choose Your Own Adventure (Page 277) - Planning the Story (Page 278) - Playing the Game (Page 279) - Forking the Code (Page 281) - Tiptoeing through the HTML and CSS (Page 282) - Writing the Martian Rescue! JavaScript (Page 286) - Part VI Loops (Page 303) - Chapter 17 What’s This Loop For? (Page 305) - Introducing the for Loop (Page 306) - Random Weather Forecasting (Page 309) - Chapter 18 Using While Loops (Page 319) - Writing a while Loop (Page 320) - Coding the Lunch Game (Page 322) - Moving to Your Own Website (Page 328) - Chapter 19 Building a Lemonade Stand (Page 336) - Playing the Game (Page 337) - A Lesson in Business (Page 339) - Building the Game (Page 344) - Improving the Lemonade Game (Page 362) - Index (Page 365) - EULA (Page 387)