Skip to main content

Coding with JavaScript For Dummies

Coding with JavaScript For Dummies

Chris Minnick, Eva Holland

ISBN: 978-1-119-05607-2 June 2015 360 Pages


In Stock




Go from beginner to builder quickly with this hands-on JavaScript guide

Coding with JavaScript For Dummies provides easy, hands-on instruction for anyone looking to learn this popular client-side language. No experience? No problem! This friendly guide starts from the very beginning and walks you through the basics, then shows you how to apply what you've learned to real projects. You'll start building right away, including web page elements and simple applications, so you can immediately see how JavaScript is used in the real world. Online exercises allow you to test your code and expand your skills, and the easy-to-follow instruction provides step-by-step guidance toward understanding the JavaScript syntax, applications, and language.

JavaScript enhances static web pages by providing dynamic elements that can adapt and react to user action. It's a need-to-know tool for aspiring web designers, but anyone can benefit from understanding this core development language. Coding with JavaScript For Dummies takes you from beginner to builder quickly as you:

  • Learn what JavaScript does, how it works, and where to use it
  • Master the core elements of JavaScript and immediately put it to work
  • Build interactive web elements and try out your code online
  • Create basic applications as you apply JavaScript to the app development workflow

Anytime a website responds to your movement around the screen, that's JavaScript. It makes websites more functional, more beautiful, and more engaging, and your site visitors will demand nothing less. If you want to build a better website, you need JavaScript. If you need JavaScript, Coding with JavaScript For Dummies gets you started off quickly and painlessly, with plenty of hands-on practice.

Introduction 1

Part I: Getting Started with JavaScript 5

Chapter 1: The World’s Most Misunderstood Programming Language 7

Chapter 2: Writing Your First JavaScript Program 19

Chapter 3: Working with Variables 39

Chapter 4: Understanding Arrays 55

Chapter 5: Working with Operators, Expressions, and Statements 67

Chapter 6: Getting into the Flow with Loops and Branches 81

Part II: Organizing Your JavaScript 95

Chapter 7: Getting Functional 97

Chapter 8: Making and Using Objects 117

Part III: JavaScript on the Web 131

Chapter 9: Controlling the Browser with the Window Object 133

Chapter 10: Manipulating Documents with the DOM 147

Chapter 11: Using Events in JavaScript 169

Chapter 12: Integrating Input and Output 181

Chapter 13: Working with CSS and Graphics 195

Part IV: Beyond the Basics 211

Chapter 14: Searching with Regular Expressions 213

Chapter 15: Understanding Callbacks and Closures 225

Chapter 16: Embracing AJAX and JSON 237

Part V: JavaScript and HTML5 253

Chapter 17: HTML5 APIs 255

Chapter 18: jQuery 271

Part VI: The Part of Tens 289

Chapter 19: Ten JavaScript Frameworks and Libraries to Learn Next 291

Chapter 20: Ten Common JavaScript Bugs and How to Avoid Them 303

Chapter 21: Ten Online Tools to Help You Write Better JavaScript 313

Index 325