Edit product

$0+

A Tiny Introduction to JavaScript with Exercises and Puzzles

Real coding for complete beginners. 

Join Matthew MacDonald, author of too-many-tech-books-to-count, as he enters the world of JavaScript—accompanied by friendly ninjas, cheating goblins, and at least one rude wizard.

Develop your skills with 35 interactive exercises on CodePen. Best of all, there's no setup required (a web browser is all you need).


Who needs another book about coding for kids?

These days, you can’t turn around twice without someone trying to teach you how to code. So why the heck did I write my own book?

When my daughters started learning to code, I discovered that most tutorials were as dry as dust. If you wanted something more fun, you could play a coding game and write commands to move a character around a maze (like a princess, a zombie, a turtle, whatever). But unlike real programming, there was no chance to be creative. There was no freedom. There was no invitation to build your own programs.

I wanted something different. Something…

  • Hands-on. If you want to learn a new skill, you need to practice. Otherwise, it’s just a bunch of theory swimming around in your head.
  • Friendly for beginners. If you’re a beginner, it’s not enough to learn the basics of a programming language like JavaScript. You also need to learn the concepts of programming at the same time.
  • No setup required. The world is full of amazing frameworks, tools, and code editors. But who wants to install a bunch of software before you even get started?
  • Tiny. I’m a programming nerd, so I like talking about things like Big O notation. But no one needs to be buried in theory at the start of their journey. In this book, every chapter is a bite-sized lesson that you can usually finish in one sitting.
  • Kinda fun. Not everyone has the motivation to learn from an old-fashioned textbook. But who doesn’t want to play dice with a cheating goblin?

So I decided to make something of my own. Then I unleashed it on my family.

This is the result of those experiments.


Why JavaScript?

Shouldn't this be in Python or something? Well, not necessarily...

JavaScript is a great first language for people learning to code. It’s not because JavaScript is a great teaching language (it mostly isn’t). It’s because JavaScript is everywhere—on every operating system, every browser, and almost every electronic device that’s more complicated than a toaster.

That means you can effortlessly share your JavaScript programs with friends. Unlike all the rest of computing history, there’s no downloading, installing, or configuring. And it doesn’t hurt that JavaScript syntax is similar to many other professional languages, like Java and C#. That means the effort you spend to learn JavaScript is never wasted.


Why CodePen?

CodePen is one of several free JavaScript playgrounds that you can use in your browser. With CodePen, you can write JavaScript code, test it, and save it for later, without needing to set anything up. And all the pieces of your solution—the HTML that creates the page, the CSS that makes it look good, and the JavaScript that powers it—are brought together in one place. There’s no need to juggle separate files.

A Tiny Introduction to JavaScript uses CodePen for all its exercises. Usually, you’ll start with a project that’s already built, and then change it. Maybe you’ll need to make an enhancement or fix a problem. And when you’re finished, you can show your work to other people just by sending them a link.


Can adults read this book?

Sure, we don't discriminate!

However, this book assumes you’re learning JavaScript and programming for the first time. If you already know a bit about programming, you’ll probably prefer a guide that focuses on the JavaScript language without re-introducing the concepts you already know.


Is this a coding game?

This is not a code simulation, game, code-themed activity, or coder cosplay. You're going to write tiny amounts of Real Code™.

This is an important difference. Games can be fun, and they can teach people, too. But to start developing a programmer's mindset, you need to write real code in an unbounded environment. Good luck!


Does it use modern JavaScript?

The focus of A Tiny Introduction to JavaScript is learning how to solve simple problems with code. There are plenty of neat tricks and practices we don't cover, because I'm focused on the basics. That said, I avoid embarrassing old JavaScript habits, like using the var keyword. This isn't your grandpa's JavaScript. (Not a slight to grandpas; they're awesome!)


Also available in print from Amazon.

You've purchased this product

See it in your library

View in Library
Sorry, this item is not available in your location.
Sold out, please go back and pick another option.

Name a fair price:

0 ratings

  • PDF book (includes links to the exercises)
  • Size5.12 MB
  • Length151 pages

Checkout

A Tiny Introduction to JavaScript with Exercises and Puzzles

Enter your info to complete your purchase

Card

···· ···· ···· 4242
Test card

05/18

Card

Use a different card?

Card

pp paypal

or pay with

We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

or pay with

Your purchase was successful!

We charged your card and sent you a receipt

Summary

    Gumroad Library

    Download from the App Store or text yourself a link to the app

    A team of ninjas high-five each other. Thanks for supporting the Tiny Introductions project!

    Good news! Since you already have a Gumroad account, it's also been added to your library.

    Powered by Gumroad