Part 1. Core concepts on the console

 

Get Programming with JavaScript starts by introducing the key concepts you use in every program. The ideas presented form the foundation for all the subsequent code you write. The discussion starts gently and takes its time, with plenty of examples. There is an overarching theme of organization, which runs throughout the book; you see how to store and retrieve values with variables, group values with objects and arrays, and group instructions with functions.

By the end of part 1, you’ll have built a working version of an adventure game called The Crypt. Players will be able to explore a map of locations and move from room to room and tomb to tomb, collecting treasure. Chapter 1 sets the scene, introducing programming, JavaScript, and JS Bin, the online code environment in which your adventures take place. Let the games begin!