Sams Teach Yourself JavaScript in 24 Hours (5th Edition) and over 2 million other books are available for Amazon Kindle . Learn more

Sign in to turn on 1-Click ordering.
Trade in Yours
For a 2.88 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Start reading Sams Teach Yourself JavaScript in 24 Hours (5th Edition) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Sams Teach Yourself JavaScript in 24 Hours (Sams Teach 24 Hours) [Paperback]

Phil Ballard , Michael Moncur
5.0 out of 5 stars  See all reviews (2 customer reviews)
Price: 22.99 & FREE Delivery in the UK. Details
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 3 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want it Saturday, 19 April? Choose Express delivery at checkout. Details


Amazon Price New from Used from
Kindle Edition 10.35  
Paperback 22.99 Trade-In Store
Did you know you can use your mobile to trade in your unwanted books for an Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details or check out the Trade-In Amazon Mobile App Guidelines on how to trade in using a smartphone. Learn more.

Book Description

9 Nov 2012 Sams Teach 24 Hours

Learn JavaScript in 24 Hours

Covers JavaScript 1.8+, Ajax and jQuery

In just 24 lessons of one hour or less, you can learn how to create dynamic, interactive Web pages with the popular and ubiquitous JavaScript web programming language.

Using a straightforward, step-by-step approach, each lesson in this book clearly and carefully walks you through basic concepts and techniques, and helps you learn the essentials of JavaScript programming from the ground up.

Learn how to…

  • Use JavaScript to build dynamic, interactive Web pages
  • Debug scripts
  • Create scripts that work in all browsers
  • Work with HTML5 and CSS3
  • Leverage the popular jQuery library
  • Control CSS with simple JavaScripts
  • Add Ajax effects to your web pages
  • Script animations and music

Step-by-step instructions carefully walk you through the most common JavaScript programming tasks

Quizzes at end of every chapter help you build and test your knowledge

Interactive online exercises let you practice what you learn at the Codecademy web site with no downloads or installation needed

Sams Publishing has teamed up with Codecademy — the online place where anyone can learn and teach coding — to provide readers of Sams Teach Yoruself JavaScript in 24 Hours with an exclusive area on the Codecademy web site where you can supplement what you've learned in this book with some fun, fully interactive exercises and projects. After reading a lesson in the book you can roll up your sleeves and get some hands-on coding experience at

Frequently Bought Together

Sams Teach Yourself JavaScript in 24 Hours (Sams Teach 24 Hours) + DOM Scripting: Web Design with JavaScript and the Document Object Model
Buy the selected items together

Product details

  • Paperback: 448 pages
  • Publisher: Sams; 5 edition (9 Nov 2012)
  • Language: English
  • ISBN-10: 0672336081
  • ISBN-13: 978-0672336089
  • Product Dimensions: 22.9 x 19 x 2.3 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 433,712 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

About the Author

Phil Ballard is a professional web consultant specializing in website and intranet design, search engine optimization, server-side scripting, client-side design, and programming and hosting. He has written a number of books and online tutorials, including Sams Teach Yourself Ajax in 10 Minutes.

Michael Moncur is the owner of Starling Technologies, a consulting firm specializing in networking and the Internet. He is also a freelance webmaster and author, and has written books on JavaScript, networking, and MCSE training.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

Customer Reviews

4 star
3 star
2 star
1 star
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
2 of 2 people found the following review helpful
5.0 out of 5 stars Not bad at all 8 April 2013
Format:Paperback|Verified Purchase
I've been using JS for years but am often asked by students fore recommendation for books. This one is fine, accurate, not too detailed - so its likely to get read rather than just stuck in the shelf and something to get you over the OMG programming hurdle
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Sam Teach YourSelf JavaScript 2 April 2014
By derick
Format:Kindle Edition|Verified Purchase
Best Book out of all the books I got

very very Good

very simple and easy to read and comprehensive
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 3.8 out of 5 stars  10 reviews
3 of 3 people found the following review helpful
5.0 out of 5 stars Lots of Information 6 April 2013
By Cloud - Published on
This book combined with the accompanying resources on are probably the best combo out there to help you learn Javascript. In addition to the nuts and bolts of Javascript, Sam's Teach Yourself also has a lot of background information and description, which is great if you need it and easy to gloss over if you don't. I certainly wouldn't say I'm an expert on Javascript yet, but I think I've got a fundamental understanding of how it works that I can continue to build on.

The specific companion on Codecademy is at
2 of 2 people found the following review helpful
3.0 out of 5 stars Misleading title, and very cursory. 14 Dec 2013
By A. P. Rickards - Published on
This book isn't bad really, it just isn't a good book to learn from. It should be titled "Sams Read about Javascript in 24 Hours" because believe me, unless you are already very familiar with JavaScript (or a similar programming language) you are going to need a hell of a lot more than 24 hours to read, understand, and do the exercises in this book.

The other thing I didn't like about it was that the progression of difficulty was somewhat erratic. Early chapters can be far more difficult to complete than later ones, and because the explanations of everything are so brief when I comes time to do the exercises I was often at a loss for where to begin, and little help is offered.

This book might be good for people who just need an overview of JavaScript but not for those who actually want to learn the language.
2 of 2 people found the following review helpful
4.0 out of 5 stars Good introduction to client-side JavaScript 19 Mar 2013
By Ken - Published on
This book gives a good introduction to the client-side JavaScript landscape and guides absolute beginners through a lot of important concepts. I've been writing JavaScript for over 10 years and here are my thoughts:


- It walks you through all the concepts you'll see in other people's code.
- Concepts build on each other and give you a chance to make working programs in each hour.
- At the end of the book it demonstrates new JavaScript APIs such as <video>, localStorage, Files API, and Drag and Drop.
- It encourages using developer tools such as Firebug and IE Developer Tools.


- It had a great section on good coding practices (hour 14) but the book would have been much better if it used those best practices from the beginning.
- It spent too much time showing how to make your code cross-browser compatible. It is more effective to teach the standard methods and then advocate using a library like jQuery to handle browser deficiencies. For example, the book didn't need to show code that used Microsoft's document.attachEvent for events or ActiveX for AJAX.
1 of 1 people found the following review helpful
5.0 out of 5 stars Intensive overview instruction on the underpinnings of the language 13 Nov 2013
By Susanne Cardwell - Published on
Sams Teach Yourself Javascript by Phil Ballard and Michael Moncur is one of the finest overview books on Javascript available. This claim to fame for Ballard and Moncur's book is especially true for those who are seeking intensive instruction on basic to advanced Javascript concepts as opposed to just looking for code snippets to cut and paste into projects.

The scarcity of code snippets (significantly fewer than the ones you'd find in the Javascript Visual Quickstart guide, for instance) is offset by a brilliant in-depth analysis and discussion on the workings of Javascript.

With that said, however, there are a number of coding projects in the book, which include (1) generating a menu for page anchors on the fly (p. 196-197), (2) toggling CSS stylesheets (p. 211), (3) dragging and dropping files from the local system onto a div in a Web page (although just the file specs and not the actual file are dropped in the example) (p. 378), (4) building a Chrome extension that gets airport status and weather data from an external site using both AJAX and JQuery (p. 390), and, perhaps most delightfully, (5) creating a space game from scratch where the player scores by shooting (clicking) an oscillating UFO that spans from left to right (p. 244).

While the code snippets are excellent summations of knowledge gained in each chapter (or each hour of lesson), the highlight of this book is the amazing instruction. I loved how this book covers the basics of Web programming with such graceful simplicity. For instance, the book outlines the window objects properties (p. 13), including document, location, history, and navigation in a beautiful and straightforward diagram that is further elaborated on within the context of the book. (If you don't know what an object is, you might want to start with reading John Pollock's Beginner Javascript before advancing to this book--and don't forget to read HTML5 and CSS3 prior to Javascript!)

The book covers conditional, variables, loops, functions, arrays--all the basics--while moving further into a discussion on concepts such as JQuery and AJAX. Furthermore, the book not only gets into a great discussion on cookies, providing an excellent utility function for cookies (p. 162), but also provides both a terrific utility function (which evolves into a library) for AJAX commands through Javascript (p. 257) and a utility function for event handlers (p. 151).

In addition, the book lucidly elaborates on DOM manipulation, including instruction on createElement, createTextNode, cloneNode, previousSibling, nextSibling, appendChild, removeChild and other relevant Dom related methods and properties.

Furthermore, animation, video/audio (from both CSS3 and Javascript perspectives), and JQuery UI (p. 335) are discussed in some detail. The JQuery UI section covers accordions, datepickers, tabs, sorting, resizing, and dragging and dropping techniques.

All in all, this book will considerably advance your progress in learning not only Javascript but also AJAX and JQuery. If you love the thorough discussions of the basics and advanced concepts--without a large emphasis on the code--that this book provides, then a next step for reading material would be Flanagan's Javascript Pocket Reference.

Also, if, after reading Ballard and Moncur's book, you find the chapter on AJAX too challenging, then consider purchasing both Head First AJAX and Larry Ullman's PHP for the Web (followed by Ullman's PHP and MySQL). Head First AJAX and Larry Ullman's books are the best introductions to both AJAX and PHP that I've yet encountered. Lastly, if you want a highly personable read on JQuery, then consider following up Moncur and Ballard's book with David Sawyer MacFarland's Javascript and JQuery book.

Ballard and Moncur both do an exceptional job of teaching Javascript in Sams Teach Yourself JavaScript. I was so thoroughly impressed with their instruction that I am now reading an additional book by Ballard: Sams Teach Yourself Javascript, AJAX, and PHP.
1 of 1 people found the following review helpful
4.0 out of 5 stars Great 26 Oct 2013
By Julie - Published on
Format:Kindle Edition|Verified Purchase
Should cost less, The book was in good condition and what I needed for class. Delievered as promised good job
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category