JavaScript Absolute Beginner's Guide, 2nd edition

  • Kirupa Chinnathambi

Choose the option that's right for you

$9.99 / mo

4-month term, pay monthly or pay $39.96

Enjoy these features

  • Up to 2 devices
  • Exclusive offers

$14.99 / mo

4-month term, pay monthly or pay $59.96

Enjoy these features

  • Up to 2 devices
  • Exclusive offers

Learn more, spend less

  • Listen on the go

    Learn how you like with full eTextbook audio

  • Learn anytime, anywhere

    Get the app to access your eTextbook whenever you need it

  • Make it your own

    Your notes. Your highlights. Your eTextbook

  • Find it fast

    Quickly navigate your eTextbook with search

  • Stay organized

    Access all your eTextbooks in one place


Who knew how simple using JavaScript could be?

Make the most of JavaScript--even if you've never programmed anything before. JavaScript Absolute Beginner's Guide is the fastest way to learn JavaScript and use it together with CSS3 and HTML5 to create powerful web and mobile experiences. Learn how to do what you want, the way you want, one incredibly easy step at a time. JavaScript has never been this simple!

Here's a small sample of what you’ll learn:
  • Organize your code with variables
  • Understand how functions make your code reusable
  • Use the popular if/else statement to help make a decision in code
  • Learn about switch statements and when to use them
  • Work with for, while, and do...while loops
  • Learn how to use global and local scope
  • Understand what closures are
  • Learn about the various places your code can live
  • Understand how to write comments and use good commenting practices
  • Learn about the basic types of objects you’ll run into in JavaScript
  • Find out that pizza has an educational value beyond just being deliciously awesome
  • Learn how to perform common string operations
  • Use arrays to handle lists of data
  • Learn to create custom objects
  • Get up to speed on some of the big ES6 changes

Published by Que Publishing (July 6th 2021) - Copyright © 2020

ISBN-13: 9780137460557

Subject: Web Programming & Design

Category: JavaScript Absolute Beginner's Guide

Table of contents

  • Introduction
  • 1 Hello, World!
  • 2 Easily testing your code
  • Part I The Basic Stuff
  • 3 Values and Variables
  • 4 Functions
  • 5 Conditional Statements: If, Else, and Switch
  • 6 Meet the Loops: For, While, and Do...While!
  • 7 Timers
  • 8 Variable Scope
  • 9 Let and Const
  • 10 Closures
  • 11 Where Should Your Code Live?
  • 12 Commenting Your Code
  • Part II It's an Object-Oriented World
  • 13 Of Pizza, Types, Primitives, and Objects
  • 14 Strings
  • 15 When Primitives Behave Like Objects
  • 16 Arrays
  • 17 Numbers
  • 18 A Deeper Look at Objects
  • 19 Extending Built-in Objects
  • 20 Defining Objects as a Class
  • 21 Extending Objects
  • 22 Booleans and the Stricter === and !== Operators
  • 23 Null and Undefined
  • 24 Immediately Invoked Function Expressions
  • Part III Working with the DOM
  • 25 JS, The Browser, and The DOM
  • 26 Finding Elements in the DOM
  • 27 Modifying DOM Elements
  • 28 Styling Your Content
  • 29 Traversing the DOM
  • 30 Creating and Removing DOM Elements
  • 31 In-Browser Developer Tools
  • Part IV Dealing with Events
  • 32 Events
  • 33 Event Bubbling and Capturing
  • 34 Mouse Events
  • 35 Keyboard Events
  • 36 Page Load Events and Other Stuff
  • 37 Handling Events for Multiple Elements
  • 38 Promises and Asynchronous Events
  • Part V Web Components
  • 39 What are web components?
  • 40 Building a custom element
  • 41 Styling and the Shadow DOM
  • 42 Templates and Slots
  • Conclusion
  • Glossary

Your questions answered

Choose from one eTextbook or over 1,500 eTextbooks and study tools, all in one place, for one low monthly subscription. A Single plan includes the use of 1 eTextbook title and study tools. A Multi plan gives you access to more than 1,500 eTextbook titles and study tools. Plus, with the app, put textbooks in your pocket and learn wherever.

Make the most of your study time with offline access, enhanced search, notes and flashcards — to get organized, get the work done quicker and get results.

A Pearson eTextbook is an easy-to-use digital version of the book. You can add notes and highlights, plus learn on the go with the Pearson+ mobile app. Listen on the go with the audiobook feature, available for most titles.

When you choose a plan, you're signing up for a 4-month 'term'. You can opt to make a one-time payment for the initial 4-month term or pay monthly. If you opt for monthly payments, we will charge your payment method each month until your 4-month term has ended. You can turn on auto-renew in My account at any time to continue your subscription before your 4-month term has ended.

When you purchase a Pearson+ subscription, it will last 4 months. Before your initial 4-month term ends, you can extend your subscription by turning auto-renew on in My account.

If you turn auto-renew on, we’ll automatically renew your subscription and charge you every month until you turn off auto-renew. If you made a one-time payment for your initial 4-month term, you’ll now pay monthly.

To avoid the next payment charge, make sure you turn auto renewal off 1 day before the auto renewal date. You can subscribe again after auto-renew has been turned off by purchasing another Pearson+ subscription. We use your credit card to renew your subscription automatically. To make sure your learning is uninterrupted, please check your card details before your first monthly payment.

With a Multi Pearson+ subscription plan, you can download up to 10 titles from your library on each of your authorized smartphone and tablet devices every month.

When you’re using your Multi Pearson+ subscription plan in a browser, you can select and read from as many titles as you like.