JavaScript Absolute Beginner's Guide, 2nd edition

  • Kirupa Chinnathambi

Choose the option that's right for you


$9.99 / mo

$4.99 / mo

For first 4 months, then $9.99 a month, 4-month minimum term for $19.96

  • Access this eText title
  • Up to 2 devices
  • Discounted tutor access


$14.99 / mo

$7.49 / mo

For first 4 months, then $14.99 a month, 4-month minimum term for $29.96

  • Access over 1,500 titles
  • Up to 2 devices
  • Discounted tutor access

Learn more, spend less

  • Listen on the go

    Learn how you like with full eText audio

  • Learn anytime, anywhere

    Get the app to access your eText whenever you need it

  • Make it your own

    Your notes. Your highlights. Your eText

  • Find it fast

    Quickly navigate your eText with search

  • Stay organized

    Access all your eTexts 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: Information Technology

Category: Computer Concepts & Applications

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

Introducing Pearson+. Reimagined learning, designed for you. Choose from one eText or over 1,500 eTexts and study tools, all in one place, for one low monthly subscription. A new way to buy books that fits your budget. 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. Plus, with the app, put textbooks in your pocket and learn wherever. It's time to upgrade the textbook and simplify learning, so you can have time to live too.

Pearson eText is an easy-to-use digital textbook available from Pearson+. Make it your own by adding notes and highlights. Download the Pearson+ mobile app to learn on the go, even offline. Listen on the go with our new audiobook feature, available for most titles.

When you choose a plan, you're signing up for a 4-month 'term'. 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.

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 5 titles on the Pearson+ app from My list on each of your authorized 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.