0%

Book Description

JavaScript lies at the heart of almost every modern web application, from social apps like Twitter to browser-based game frameworks like Phaser and Babylon. Though simple for beginners to pick up and play with, JavaScript is a flexible, complex language that you can use to build full-scale applications.

This much anticipated and thoroughly revised third edition of Eloquent JavaScript dives deep into the JavaScript language to show you how to write beautiful, effective code. It has been updated to reflect the current state of Java¬Script and web browsers and includes brand-new material on features like class notation, arrow functions, iterators, async functions, template strings, and block scope. A host of new exercises have also been added to test your skills and keep you on track.

As with previous editions, Haverbeke continues to teach through extensive examples and immerses you in code from the start, while exercises and full-chapter projects give you hands-on experience with writing your own programs. You start by learning the basic structure of the JavaScript language as well as control structures, functions, and data structures to help you write basic programs. Then you’ll learn about error handling and bug fixing, modularity, and asynchronous programming before moving on to web browsers and how JavaScript is used to program them. As you build projects such as an artificial life simulation, a simple programming language, and a paint program, you’ll learn how to:

•Understand the essential elements of programming, including syntax, control, and data
•Organize and clarify your code with object-oriented and functional programming techniques
•Script the browser and make basic web applications
•Use the DOM effectively to interact with browsers
•Harness Node.js to build servers and utilities

Isn’t it time you became fluent in the language of the Web?

All source code is available online in an interactive sandbox, where you can edit the code, run it, and see its output instantly.

Table of Contents

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. Dedication
  5. BRIEF CONTENTS
  6. CONTENTS IN DETAIL
  7. INTRODUCTION
  8. PART I: LANGUAGE
    1. 1 VALUES, TYPES, AND OPERATORS
    2. 2 PROGRAM STRUCTURE
    3. 3 FUNCTIONS
    4. 4 DATA STRUCTURES: OBJECTS AND ARRAYS
    5. 5 HIGHER-ORDER FUNCTIONS
    6. 6 THE SECRET LIFE OF OBJECTS
    7. 7 PROJECT: A ROBOT
    8. 8 BUGS AND ERRORS
    9. 9 REGULAR EXPRESSIONS
    10. 10 MODULES
    11. 11 ASYNCHRONOUS PROGRAMMING
    12. 12 PROJECT: A PROGRAMMING LANGUAGE
  9. PART II: BROWSER
    1. 13 JAVASCRIPT AND THE BROWSER
    2. 14 THE DOCUMENT OBJECT MODEL
    3. 15 HANDLING EVENTS
    4. 16 PROJECT: A PLATFORM GAME
    5. 17 DRAWING ON CANVAS
    6. 18 HTTP AND FORMS
    7. 19 PROJECT: A PIXEL ART EDITOR
  10. PART III: NODE
    1. 20 NODE.JS
    2. 21 PROJECT: SKILL-SHARING WEBSITE
    3. 22 JAVASCRIPT AND PERFORMANCE
    4. EXERCISE HINTS
  11. INDEX
54.159.186.146