While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc. The information in this book is distributed on an “As Is” basis, without warranty. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Other product and company names mentioned herein may be the trademarks of their respective owners. QA76.73.J39H38 2009 005.13'3-dc22 2010032246 No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc.
JavaScript (Computer program language) I. Eloquent JavaScript: a modern introduction to programming / by Marijn Haverbeke. 245 8th Street, San Francisco, CA 94103 phone: 1.415.863.9900 The Library of Congress has catalogued the first edition as follows: Haverbeke, Marijn. For information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. Game concept for Chapter 15 by Thomas Palef (). Village photograph in Chapter 11 by Fabrice Creuzot. Regular expression diagrams in Chapter 9 generated with Regexper by Jeff Avallone ().
Pixel art in Chapters 7 and 16 by Antonio Perdomo Pastor. Fraleigh Chapter illustrations by Madalina Tantareanu.
ISBN-10: 1-59327-950-7 ISBN-13: 978-1-59327-950-9 Publisher: William Pollock Production Editor: Riley Hoffman Cover Illustration: Madalina Tantareanu Interior Design: Octopod Studios Developmental Editor: Corbin Collins Technical Reviewer: Angus Croll Copyeditor: Kim Wimpsett Compositor: Riley Hoffman Proofreader: James M. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.
STARBOUND SAVE EDITOR 2019 SOFTWARE
“A really good guide to JavaScript but even more than that, this book is a great guide to programming.” -BEN NADEL, CHIEF SOFTWARE ENGINEER AT EPICENTER CONSULTING “A good book, suitable for those without experience in JavaScript and even those without programming experience.” -NICHOLAS ZAKAS, AUTHOR OF HIGH PERFORMANCE JAVA SCRIPT AND THE PRINCIPLES OF OBJECT-ORIENTED JAVA SCRIPT “If you’re new to JavaScript, the first thing I’d recommend you do is visit Eloquent JavaScript and check out Marijn Haverbeke’s introduction to the language.” -CNET UKĮLOQUENT JAVASCRIPT A Modern Introduction to ProgrammingĮLOQUENT JAVASCRIPT, 3RD EDITION.
STARBOUND SAVE EDITOR 2019 HOW TO
Period.” -JAN LEHNARDT, CO-CREATOR OF HOODIE AND ORGANIZER OF JSCONF EU “This is the book I give out when people ask me how to learn proper JavaScript.” -CHRIS WILLIAMS, ORGANIZER OF JSCONF US “One of the best JavaScript books I’ve read.” -REY BANGO, JQUERY TEAM MEMBER MANAGER AT MICROSOFT It deserves to share shelf space with Flannagan and Crockford.” -ANGUS CROLL, TWITTER DEVELOPER “The best introduction into any programming language and programming overall. ROSS, WEB DEVELOPER AND SLASHDOT CONTRIBUTOR “I became a better architect, author, mentor and developer because of this book. PRAISE FOR THE FIRST AND SECOND EDITIONS OF ELOQUENT JAVASCRIPT “Provides some of the best explanations of programming concepts that I’ve ever read.” -SANDRA HENRY -STOCKER, IT WORLD “If you choose to start your JavaScript journey with this book, it can quickly teach you a lot of technical information and also programming wisdom.” -MICHAEL J. 1 VALUES, TYPES, AND OPERATORS.Ĥ DATA STRUCTURES: OBJECTS AND ARRAYS.Ħ THE SECRET LIFE OF OBJECTS.ġ1 ASYNCHRONOUS PROGRAMMING.ġ2 PROJECT: A PROGRAMMING LANGUAGE.ġ3 JAVASCRIPT AND THE BROWSER.ġ4 THE DOCUMENT OBJECT MODEL.ġ6 PROJECT: A PLATFORM GAME.ġ9 PROJECT: A PIXEL ART EDITOR.Ģ1 PROJECT: SKILL-SHARING WEBSITE.Ģ2 JAVASCRIPT AND PERFORMANCE.