Mastering JavaScript
$9.99
Minimum price
$15.99
Suggested price

Mastering JavaScript

The Complete Guide to JavaScript Mastery.

About the Book

JavaScript is one of the most powerful programming languages on the web! With it, you can build highly dynamic websites and apps (including both frontend and backend development!).

If you're a beginner looking to learn your first line of JavaScript or you're looking to expand your knowledge and truly learn the fundamentals. The Complete Guide to JavaScript Mastery will take you from zero to hero!

Have you ever wanted to learn Angular, React, Vue or Node.js? A solid understanding of JavaScript fundamentals will make picking up JS frameworks a breeze!

We cover it all from basic Syntax & Structure, Variables and Data Types to the Document Object Model (the DOM), Arrays, Functions, Loops, and Objects. We also dive into advanced topics such as working with APIs, Async and Defer, Promises, Regex operations & more!

Mastering JavaScript will benefit your web development skills enormously - and it's in very high demand professionally, today the average salary for JavaScript developers are some of the highest in tech!

  • Share this book

  • Categories

    • Computers and Programming
    • JavaScript
    • Web Development
    • Software
    • Software Architecture
  • Feedback

    Email the Author(s)

About the Author

Tim Robards
Tim Robards

G'Day! I'm an Australian developer living in Toronto, Canada. I am passionate about technology & have been a writer & educator in the web development/design space for more years than I can count!

I communicate in a way that is both clear & approachable for beginners, while remaining stimulating for those with some experience - as we work towards the goal of tackling more complex subjects.

I also aim to keep all of my writing as up-to-date as possible! So you can rest assured that you'll be learning the very latest techniques.

Cheers!

Table of Contents

  • An Introduction
    • Introducing JavaScript
    • How to add JavaScript to a webpage
    • How to add inline JavaScript
    • How to link to external JavaScript
    • Summary
  • Syntax and Structure
    • JavaScript Values
    • Camel Case
    • Unicode
    • Semicolons
    • Indentation
    • White Space
    • Commenting
    • Identifiers
    • Case Sensitivity
    • Reserved Words
    • JavaScript Operators
    • JavaScript Expressions
    • Summary
  • Variables, Scope & Hoisting
    • What are Variables?
    • Naming Variables
    • Difference Between var, let, and const
    • Variable Scope
    • Hoisting
    • Constants
    • Summary
  • Data Types
    • What are Data Types?
    • Summary
  • Converting Data Types
    • Converting Values to Strings
    • Converting Values to Numbers
    • Converting Values to Booleans
  • The Basics of JavaScript Strings
    • Creating Strings
    • Concatenation
    • Syntax Rules
    • Summary
  • Working with Strings
    • The Anatomy of a String
    • Converting Strings into Numbers
  • An Introduction to the DOM
    • What is the DOM?
    • The DOM Tree & Nodes
  • Accessing DOM Elements
    • getElementById()
    • getElementsByClassName()
    • getElementsByTagName()
    • Query Selectors
  • Traversing the DOM
    • Root Nodes
    • Parent Nodes
    • Child Nodes
    • Sibling Nodes
  • Making changes to the DOM
    • Creating New Nodes
    • Inserting Nodes into the DOM
    • Removing Nodes from the DOM
  • How to modify DOM nodes
    • Modifying Attributes
    • Modifying Classes
    • Modifying Styles
  • Understanding Events
    • What are Event Handlers & Event Listeners?
    • Inline Event Handlers
    • Event Handler Properties
    • Event Listeners
    • Common Events
    • Event Objects
    • Summary
  • Mastering Arrays
    • Creating an Array
    • Looping over an Array
    • Adding to the end of an Array
    • Removing from the end of an Array
    • Removing from the front of an Array
    • Adding to the front of an Array
    • Getting the index of an Array item
    • Removing an item by index position
    • Remove multiple items from an index position
    • Copying an Array
    • Checking if an object is an Array
    • Reversing the order of an Array
    • Replacing Array elements with static values
    • Sorting an Array
    • Merging Arrays
    • Converting Array Elements into a String
    • map(), filter() and reduce()
    • Find the first element that satisfies a function
  • Mastering Objects
    • Creating an Object
    • Dot notation
    • Deleting Properties
    • Square Brackets
    • Updating object members
    • What is “this”?
    • Summary
  • Using Conditionals
    • if/else Statements
    • else if
    • Comparison operators
    • Nesting if/else
    • Logical operators: AND, OR, and NOT
    • switch statements
    • Ternary operator
  • Mastering Loops
    • the for loop
    • do…while statement
    • while statement
    • labelled statement
    • break statement
    • continue statement
    • for…in statement
    • for…of statement
    • Summary
  • Mastering Functions
    • Defining functions
    • Function expressions
    • Calling functions
    • Function scope
    • Nesting functions and closures
    • Closures
    • The arguments object
    • Function parameters
    • Arrow functions
    • Predefined functions
    • Summary
  • What are classes?
    • Classes are just like functions!
    • Class declarations
    • Hoisting
    • Class expressions
    • Constructors
    • Instance properties
    • Field declarations
    • Child classes using ‘extends’
    • Species
    • The ‘super’ keyword
    • Mix-ins
  • Understanding APIs
    • APIs in JavaScript
    • So how do APIs work?
    • Summary
  • Fetching data from a server
    • The old way…
    • The solution: AJAX
    • Creating an Ajax request
    • XMLHttpRequest
    • Fetch
    • Working with promises
    • Summary
  • An Introduction to REST APIs
    • What is a REST API?
    • RESTful Architecture
    • REST in action
    • Working with REST data
  • Promises
    • Why use promises?
    • Summary
  • Async & defer
    • <script>
    • <script async>
    • <script defer>
    • So when should I use each method?
  • The ‘this’ keyword
    • A little background
    • Execution Context
    • “this” in Global Scope
    • “this” when calling Function
    • “this” in Methods
    • “this” with call() and apply()
    • “this” with bind()
    • “this” inside an Arrow Function
    • Summary
  • Understanding Regex
    • A very basic Regex pattern
    • Why use Regular Expressions?
    • Creating a Regular Expression
    • Regular Expression Methods
    • The Power of Regex
    • Flags:
    • Character groups
    • Reviewing Regex
    • Summary
  • You did it!

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub