Javascript Tutorials For Dummies

JavaScript For Dummies is an introduction to the basics of JavaScript coding. In each tutorial, we walk you step‐by‐step through creating JavaScript programs for the web. Designed for kids of all ages, with no coding experience, we strive to introduce this technical topic in a fun, engaging, and interactive way.

JavaScript is the most widely used programming language in the world today. That’s why we think you’ve made a great decision by beginning your journey into the world of coding by picking up this tutorials.

JavaScript is fun and easy to learn! With some determination and imagination, you’ll be on your way to creating your very own JavaScript programs in no time!

Just as the only way to Carnegie Hall is to practice, practice, practice, the only way to become a better programmer is to code, code, code!

About Javascript Tutorials

We seek to “de‐code” the language of JavaScript for you and give you an understanding of the concepts. With the ability to move at your own pace, JavaScript For Kids For Dummies will get you up to speed. In this tutorials, you learn how to create fun games and programs. We even show you how to customize and build your own versions of the games that you can post to the web and share with your friends!

Whether you know a little JavaScript or you’ve never seen it before, this tutorials shows you how to write JavaScript the right way.

Topics covered in this tutorials include the following:

  • The basic structures of JavaScript programs
  • JavaScript expressions and operators
  • Structuring your programs with functions
  • Writing loops
  • Working with JavaScript, HTML5, and CSS3
  • Making choices with if...else statements

Learning JavaScript isn’t only about learning how to write the language. It’s also about accessing the tools and the community that has been built around the language. JavaScript programmers have refined the tools and techniques used to write JavaScript over the language’s long and exciting history. Throughout this tutorials, we mention important techniques and tools for testing, documenting, and writing better code!

To make the tutorials easier to read, you’ll want to keep in mind a few tips. First, all JavaScript code and all HTML and CSS markup appears in monospaced type like this:


The margins on tutorials page don’t have the same room as your monitor likely does, so long lines of HTML, CSS, and JavaScript may break across multiple lines. Remember that your computer sees such lines as single lines of HTML, CSS, or JavaScript. We indicate that everything should be on one line by breaking it at a punctuation character or space and then indenting any overage, like so:

document.getElementById("thisIsAnElementInTheDocument"). addEventListener("click",doSomething,false);

HTML and CSS don’t care very much about whether you use uppercase or lowercase letters or a combination of the two. But, JavaScript cares a lot! In order to make sure that you get the correct results from the code examples in the tutorials, always stick to the same capitalizations that we use.

Foolish Assumptions

You don’t need to be a “programming ninja” or a “hacker” to understand programming. You don’t need to understand how the guts of your computer work. You don’t even need to know how to count in binary.

However, we do need to make a couple of assumptions about you. We assume that you can turn your computer on, that you know how to use a mouse and a keyboard, and that you have a working Internet connection and web browser. If you already know something about how to make web pages (it doesn’t take much!), you’ll have a jumpstart on the material.

The other things you need to know to write and run JavaScript code are details we cover in the tutorials, and the one thing you’ll find to be true is that programming requires attention to details.

Where to Go from Here

Coding with JavaScript is fun, and when you get a little knowledge under your belt, the world of interactive web applications is your oyster! So buckle up! We hope you enjoy the tutorials and our occasional pearls of wisdom.