Book description
JavaScript is the programming language of the Internet, the secret sauce that makes the Web awesome, your favorite sites interactive, and online games fun!
JavaScript for Kids is a lighthearted introduction that teaches programming essentials through patient, step-by-step examples paired with funny illustrations. You'll begin with the basics, like working with strings, arrays, and loops, and then move on to more advanced topics, like building interactivity with jQuery and drawing graphics with Canvas.
Along the way, you'll write games such as Find the Buried Treasure, Hangman, and Snake. You'll also learn how to:
- Create functions to organize and reuse your code
- Write and modify HTML to create dynamic web pages
- Use the DOM and jQuery to make your web pages react to user input
- Use the Canvas element to draw and animate graphics
- Program real user-controlled games with collision detection and score keeping
Ages 10+ (and their parents!)
Publisher resources
Table of contents
- JavaScript for Kids: A Playful Introduction to Programming
- Dedication
- About the Author
- About the Illustrator
- About the Technical Reviewer
- Acknowledgments
- Introduction
-
I. Fundamentals
- 1. What Is JavaScript?
- 2. Data Types and Variables
- 3. Arrays
- 4. Objects
- 5. The Basics of HTML
- 6. Conditionals and Loops
- 7. Creating a Hangman Game
-
8. Functions
- The Basic Anatomy of a Function
- Creating a Simple Function
- Calling a Function
- Passing Arguments into Functions
- Returning Values from Functions
- Using Function Calls as Values
- Using Functions to Simplify Code
- Leaving a Function Early with return
- Using return Multiple Times Instead of if...else Statements
- What You Learned
- Programming Challenges
-
II. Advanced JavaScript
- 9. The DOM and jQuery
- 10. Interactive Programming
- 11. Find the Buried Treasure!
- 12. Object-Oriented Programming
-
III. Canvas
- 13. The Canvas Element
- 14. Making Things Move on the Canvas
- 15. Controlling Animations with the Keyboard
- 16. Making a Snake Game: Part 1
- 17. Making a Snake Game: Part 2
- Afterword: Where To Go From Here
- Glossary
- Updates
- Index
- Copyright
Product information
- Title: JavaScript for Kids
- Author(s):
- Release date: December 2014
- Publisher(s): No Starch Press
- ISBN: 9781593274085
You might also like
book
JavaScript For Kids For Dummies
Have big dreams? Kick start them with JavaScript! If we've learned one thing from the Millennial …
book
JavaScript Projects for Kids
Gear up for a roller-coaster ride into the world of JavaScript and programming with this easy-to-follow, …
book
Begin to Code with JavaScript
Become a JavaScript programmerand have fun doing it! Start writing software that solves real problems, even …
book
HTML and CSS in 24 Hours, Sams Teach Yourself (Updated for HTML5 and CSS3), Ninth Edition
Learn HTML5 and CSS3 in 24 one-hour lessons! Sams Teach Yourself HTML and CSS in 24 …