Download E-books JavaScript for Kids: A Playful Introduction to Programming PDF

By Nick Morgan

JavaScript is the programming language of the net, the key sauce that makes the net amazing, your favourite websites interactive, and on-line video games fun!

JavaScript for Kids is a lighthearted creation that teaches programming necessities via sufferer, step by step examples paired with humorous illustrations. you are going to start with the fundamentals, like operating with strings, arrays, and loops, after which flow directly to extra complicated themes, like development interactivity with jQuery and drawing photographs with Canvas.

Along the way in which, you are going to write video games corresponding to locate the Buried Treasure, Hangman, and Snake. you are going to additionally find out how to:

  • Create services to arrange and reuse your code
  • Write and alter HTML to create dynamic net pages
  • Use the DOM and jQuery to make your web content react to consumer input
  • Use the Canvas point to attract and animate graphics
  • Program genuine user-controlled video games with collision detection and rating keeping

With visible examples like bouncing balls, lively bees, and racing vehicles, you could quite see what you are programming. each one bankruptcy builds at the final, and programming demanding situations on the finish of every bankruptcy will stretch your mind and encourage your personal remarkable courses. Make anything cool with JavaScript today!

Ages 10+ (and their parents!)

Show description

Read Online or Download JavaScript for Kids: A Playful Introduction to Programming PDF

Similar Children books

Ratburger

This is often the 5th hilarious and touching novel from David Walliams: no 1 bestseller and quickest starting to be children's writer within the kingdom.

Wanted (Pretty Little Liars, Book 8)

Being sought after isn't a superb factor. for 3 lengthy years, Hanna, Spencer, Aria, and Emily questioned what occurred the evening their ally Alison disappeared. Now that every one their questions have eventually been replied, they could positioned this lousy bankruptcy in their lives at the back of them. Or in order that they imagine. now not each tale has a contented finishing, in particular whilst 4 lovely little liars have performed such a lot of depraved issues.

Guys Read: Thriller

A physique at the tracksA teenage terroristA mysterious wish-granting machineThe world’s worst inner most detectiveThe moment quantity within the men learn Library of significant examining is brim-full of poser, intrigue, and nefarious task. that includes the very best writers round, and compiled by way of qualified man Jon Scieszka, men learn: mystery is a pulse-pounding number of brand-new brief tales, every one absolute to maintain you riveted until eventually the ultimate web page.

Cinderella Smith: The Super Secret Mystery

Stephanie Barden has created a superb function version for tweens. Cinderella Smith is convinced, clever, and intensely actual. lovers of Junie B. Jones and Clementine will love looking at Cinderella overcome the issues of third-grade existence, and oldsters will take pleasure in the vocabulary-enhancing phrases Stephanie Barden sprinkles in the course of the tale.

Additional info for JavaScript for Kids: A Playful Introduction to Programming

Show sample text content

154 number 1: directory your folks with jQuery (And Making Them scent! ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 #2: creating a Heading Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 #3: Delaying Animations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 #4: utilizing fadeTo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 10 Interactive Programming one hundred fifty five Delaying Code with setTimeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Canceling a Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Calling Code a number of occasions with setInterval . . . . . . . . . . . . . . . . . . . . . . 158 Animating components with setInterval . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 Responding to person activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Responding to Clicks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 The mousemove occasion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 What You discovered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred sixty five Programming demanding situations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred sixty five number 1: stick to the Clicks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred sixty five #2: Create your personal Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred sixty five #3: Cancel an Animation with a click on . . . . . . . . . . . . . . . . . . . . . . 166 #4: Make a “Click the Header” video game! . . . . . . . . . . . . . . . . . . . . . . 166 Contents in Detail  xv 11 locate the Buried Treasure! 167 Designing the sport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 developing the net web page with HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 settling on a Random Treasure position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a hundred and seventy deciding upon Random Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . one hundred seventy environment the Treasure Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . 171 the press Handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Counting Clicks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 Calculating the space among the clicking and the Treasure . . 172 utilizing the Pythagorean Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Telling the participant How shut they're . . . . . . . . . . . . . . . . . . . . . one hundred seventy five Checking If the participant gained . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 placing all of it jointly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 What You realized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 Programming demanding situations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 number one: expanding the taking part in quarter . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 #2: including extra Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 #3: including a click on restrict . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 #4: showing the variety of closing Clicks . . . . . . . . . . . . . . 179 12 Object-Oriented Programming 181 an easy item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 including the right way to items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 utilizing the this key-phrase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Sharing a mode among Multiple Objects . . . . . . . . . . . . . . . . 183 growing items utilizing Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Anatomy of the undefined . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 making a vehicle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 Drawing the automobiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 trying out the drawCar functionality . . . . . . . . . . . . . . . . . . . . . . . . .

Rated 4.41 of 5 – based on 46 votes