JavaScript Crash Course: A Hands-On, Project-Based Introduction to Programming

  • 6h 3m
  • Nick Morgan
  • No Starch Press
  • 2024

JavaScript Crash Course is a fun-filled, fast-paced introduction to programming with JavaScript. Dive right in and you’ll be writing code, solving problems, and building working web applications and games in no time.

You’ll start by learning fundamental programming concepts, such as variables, arrays, objects, functions, conditionals, loops, classes, and more. Aided by engaging examples and hands-on exercises, you’ll build on this foundation and combine JavaScript with HTML and CSS to create interactive web applications that you can run right away.

Then you’ll put your new skills into play with three substantial projects: a Pong-style game with a virtual opponent, an app that generates electronic music, and a platform for visualizing data fetched from an API.

Along the way, you’ll learn how to:

  • Update web pages in real time by manipulating the Document Object Model
  • Trigger functions in response to events like key presses and mouse clicks
  • Generate graphics and animations with JavaScript and HTML’s Canvas element
  • Visualize data with the D3.js library and scalable vector graphics (SVG)
  • Make electronic music with Tone.js and the Web Audio API

If you’ve been thinking about digging into programming, JavaScript Crash Course will get you writing real programs fast. Why wait any longer? Jump on your magic carpet and ride!

About the Author

Nick Morgan is a software engineer at Twitter. He started on the web team, writing JavaScript to help to build the main twitter.com website. He now writes Scala for the backend Tweets service, working on projects such as the change from 140 to 280 character Tweets and the Limit Replies feature. Nick grew up in the UK, and has a degree in Music and Sound Recording from the University of Surrey. He now lives in Colorado with his wife, two daughters, three cats, and one dog.

In this Book

  • Introduction
  • Getting Started
  • The Basics
  • Compound Data Types
  • Conditionals and Loops
  • Functions
  • Classes
  • HTML, the DOM, and CSS
  • Event-based Programming
  • The Canvas Element
  • Pong
  • Object-oriented Pong
  • Generating Sounds
  • Writing a Song
  • Introducing The D3 Library
  • Visualizing Data From The Github Search API
  • Afterword
SHOW MORE
FREE ACCESS