Introduction to JavaScript Programming The 'Nothing but a Browser' Approach, 1st edition

  • Eric Roberts

Choose the option that's right for you


$9.99 / mo

4-month minimum term for $39.96

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


$14.99 / mo

4-month minimum term for $59.96

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

Learn more, spend less

  • 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

  • Easily continue access

    Keep learning with auto-renew


Understanding Programming through JavaScript will help you develop the foundational skills needed to work with JavaScript and alternative coding languages. You'll prepare for opportunities in computer programing by creating live, interactive web applications that really work on web browsers.

Published by Pearson (June 9th 2021) - Copyright © 2020

ISBN-13: 9780137530847

Subject: Pre-Programming & Introduction to Programming

Category: Additional Programming Languages

Table of contents

1. A Gentle Introduction

1.1 Introducing Karel

1.2 Teaching Karel to solve problems

1.3 Control statements

1.4 Stepwise refinement

1.5 Algorithms in Karel’s world


            Review questions


2. Introducing JavaScript

2.1 Data and types

2.2 Numeric data

2.3 Variables

2.4 Functions

2.5 String data

2.6 Running JavaScript in the browser

2.7 Testing and debugging

2.8 Software maintenance


            Review questions


3. Control Statements

3.1 Boolean Data

3.2 The if statement

3.3 The switch statement

3.4 The while statement

3.5 The for statement

3.6 Algorithmic programming

3.7 Avoiding fuzzy standards of truth


            Review questions


4. Simple Graphics

4.1 A graphical version of “Hello World”

4.2 Classes, objects, and methods

4.3 Graphical objects

4.4 The graphics window

4.5 Creating graphical applications


            Review questions


5. Functions

5.1 A quick review of functions

5.2 Libraries

5.3 A library to support randomness

5.4 The mechanics of function calls

5.5 Recursive functions


            Review questions


6. Writing Interactive Programs

6.1 First-class functions

6.2 A simple interactive example

6.3 Controlling properties of objects

6.4 Responding to mouse events

6.5 Timer-based animation

6.6 Expanding the graphics library


            Review questions


7. Strings

7.1 Binary representation

7.2 String operations

7.3 Classifying characters

7.4 Common string patterns

7.5 String applications

7.6 Reading from the console


            Review questions


8. Arrays

8.1 Introduction to arrays

8.2 Array operations

8.3 Using arrays for tabulation

8.4 Reading text from files

8.5 Multidimensional arrays

8.6 Image processing


            Review questions


9. Objects

9.1 Objects in JavaScript

9.2 Using objects as maps

9.3 Representing points

9.4 Rational numbers

9.5 Linking objects together


            Review questions


10. Designing Data Structures

10.1 Abstract data types

10.2 Implementing a token scanner

10.3 Efficiency and representation

10.4 Representing real-world data


            Review questions


11. Inheritance

11.1 Class hierarchies

11.2 Defining an employee hierarchy

11.3 Extending graphical classes

11.4 Decomposition and inheritance

11.5 Alternatives to inheritance


            Review questions


12. JavaScript and the Web

12.1 A simple interactive example

12.2 An expanded look at HTML

12.3 Controlling style using CSS

12.4 Connecting JavaScript and HTML

12.5 Storing data in the index.html file


            Review questions



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.