Get Programming with JavaScript

  • 4h 49m
  • John R. Larsen
  • Manning Publications
  • 2016


Get Programming with JavaScript is a hands-on introduction to programming for readers who have never programmed. You'll be writing your own web apps, games, and programs in no time! Foreword by Remy Sharp.

About the Book

Are you ready to start writing your own web apps, games, and programs? You’re in the right place! Get Programming with JavaScript is a hands-on introduction to programming for readers who have never written a line of code. Since you’re just getting started, this friendly book offers you lots of examples backed by careful explanations. As you go along, you’ll find exercises to check your understanding and plenty of opportunities to practice your new skills. You don’t need anything special to follow the examples—just the text editor and web browser already installed on your computer. We even give you links to working online code so you can see how everything should look live on your screen.

What’s Inside

  • All the basics—objects, functions, responding to users, and more
  • Think like a coder and design your own programs
  • Create a text-based adventure game
  • Enhance web pages with JavaScript
  • Run your programs in a web browser
  • Four bonus chapters available online

About the Reader

No experience required! All you need is a web browser and an internet connection.

About the Author

John Larsen is a mathematics and computing teacher with an interest in educational research. He has an MA in mathematics and an MSc in information technology. He started programming in 1982, writing simple programs for teaching mathematics in 1993, building websites in 2001, and developing data-driven web-based applications for education in 2006.

In this Book

  • Foreword
  • About This Book
  • Programming, JavaScript, and JS Bin
  • Variables—Storing Data in Your Program
  • Objects—Grouping Your Data
  • Functions—Code on Demand
  • Arguments—Passing Data to Functions
  • Return Values—Getting Data from Functions
  • Object Arguments—Functions Working with Objects
  • Arrays—Putting Data into Lists
  • Constructors—Building Objects with Functions
  • Bracket Notation—Flexible Property Names
  • Scope—Hiding Information
  • Conditions—Choosing Code to Run
  • Modules—Breaking a Program into Pieces
  • Models—Working with Data
  • Views—Displaying Data
  • Controllers—Linking Models and Views
  • HTML—Building Web Pages
  • Controls—Getting User Input
  • Templates—Filling Placeholders with Data
  • XHR—Loading Data
  • Conclusion—Get Programming with JavaScript