Sams Teach Yourself JavaScript in 24 Hours (5th Edition) and over 2 million other books are available for Amazon Kindle . Learn more
FREE Delivery in the UK.
Only 2 left in stock (more on the way).
Dispatched from and sold by Amazon.
Gift-wrap available.
JavaScript in 24 Hours, S... has been added to your Basket
Trade in your item
Get a £2.60
Gift Card.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

JavaScript in 24 Hours, Sams Teach Yourself (Sams Teach 24 Hours) Paperback – 9 Nov 2012

See all 2 formats and editions Hide other formats and editions
Amazon Price New from Used from
Kindle Edition
"Please retry"
"Please retry"
£12.07 £11.87

Trade In Promotion

Frequently Bought Together

JavaScript in 24 Hours, Sams Teach Yourself (Sams Teach 24 Hours) + Sams Teach Yourself PHP, MySQL and Apache All in One (Sams Teach Yourself All in One)
Price For Both: £42.78

Buy the selected items together

Trade In this Item for up to £2.60
Trade in JavaScript in 24 Hours, Sams Teach Yourself (Sams Teach 24 Hours) for an Amazon Gift Card of up to £2.60, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Product details

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

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.0 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See all 3 customer reviews
Share your thoughts with other customers

Most Helpful Customer Reviews

2 of 2 people found the following review helpful By Amazon Customer on 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? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
By Mark J Quigley on 7 May 2014
Format: Paperback Verified Purchase
The book arrived on time and in perfect condition. I've been going through the book the last few days and I'm now on C8. It's not the best book I've ever read and it assumes some background knowledge as the explanations could be more in depth or just plain better with more real life examples of why or where you might use some of the code. I'll update my review as I come to the end, but at the moment I would save yourself some money and just use the code academy site and look at the mozilla web which contain more information with better examples.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
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? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on (beta) 11 reviews
4 of 4 people found the following review helpful
Lots of Information 6 April 2013
By Cloud - Published on
Format: Paperback
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
3 of 3 people found the following review helpful
Good introduction to client-side JavaScript 19 Mar. 2013
By Ken - Published on
Format: Paperback
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.
3 of 3 people found the following review helpful
Misleading title, and very cursory. 14 Dec. 2013
By A. P. Rickards - Published on
Format: Paperback
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.
1 of 1 people found the following review helpful
Intensive overview instruction on the underpinnings of the language 13 Nov. 2013
By Susanne Cardwell - Published on
Format: Paperback
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
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