Learn JavaScript With Hedwix (The Book + Source Code)

Retired

This book is no longer available for sale.

Learn JavaScript With Hedwix

About the Book

JavaScript has seen a tremendous growth in popularity and opportunity for developers, but there is no learning material that offers a practical and modern way to learn JavaScript. This book is intended for beginner and intermediate developers interested in learning what JavaScript can do, from adding interactivity to web pages, to creating a server with Node.js.

  • Share this book

  • Categories

    • JavaScript
    • Node.js
    • Web Development
    • Software Engineering
  • Feedback

    Email the Author(s)

About the Author

Nathan Sebhastian
Nathan Sebhastian

Hi there! I write about JavaScript and web development tutorials at sebhastian.com

Learn how to code with my books here on Leanpub ?

Table of Contents

  • Introduction
    • Preface
    • JavaScript Introduction
      • Why Learn JavaScript
      • JavaScript and Java
    • Setting up your computer
      • Installing VSCode
      • Installing Node.js
      • Installing cmder (for Windows only)
      • Quick Console Introduction
  • Part 1: The Basics of JavaScript
    • Time to Say Hello, World!
    • Code Structure
      • Statements
      • Comments in JavaScript
      • Execution flow
      • Code exercise
    • Variable
      • Constant variable
      • The var keyword
      • Code exercise
    • Data types
      • Number types
      • String Types
      • Boolean
      • Null
      • Undefined
      • Object
      • Checking Type by Using typeof
      • Code exercise
    • Type conversion
      • Code exercise
    • Operators
      • Arithmetic operators
      • Assignment operators
      • Logical operators
      • Comparison operators
      • Code exercise
    • Control flow statements
      • The else keyword
      • Code exercise
    • Switch case conditional
      • Code exercise
    • Loop statements
      • The while loop
      • The do..while loop
      • Code exercise
    • Functions
      • Function parameters
      • Function With return statement
      • Function and variable
      • Code exercise
    • Object data type
      • Object dot notation
      • Removing object property
      • Adding function to object and this keyword
      • Code exercise
    • Array data type
      • Reading array value
      • Special Methods For Array Manipulation
      • Looping An Array
      • Code exercise
    • Class
      • Creating A Child Class
      • Code exercise
    • Part 1 project and summary
      • Part 1: A Cash Register Machine
      • Part 1 summary
  • Part 2: JavaScript in the Browser
    • Use of JavaScript in the browser
      • Setting Local Web Server Using Node
      • Running JavaScript in the Browser
      • Refresher on HTML and CSS
    • The Document Object Model
      • DOM query selector and get element
      • Manipulating element nodes
      • Modifying element styles
      • Code exercise
    • Handling events
      • Adding event listener
      • Mouse events
      • Keyboard events
      • Code exercise
    • Handling forms
      • Form submit event
      • Validating form values
      • Other types of input
      • Code exercise
    • Network request and asynchronous programming
      • Making network request
      • Understanding asynchronous programming
      • Displaying the result of network request
      • Code exercise
    • Part 2 project and summary
      • Part 2 Project: A GitHub Client
      • Part 2 summary
  • Part 3: JavaScript and Node.js
    • Accessing Node.js’s API
      • Creating Node.js server with HTTP module
      • Fetching data from Node.js server
      • Sending a POST request
      • Code exercise
    • Part 3 project and summary
      • Currency Converter API
      • Part 3 summary
  • Conclusion
    • Parting words
      • What to do next
      • Thank You for reading
  • Extra JavaScript Knowledge
    • The old var keyword
    • JavaScript lexical guide
      • JavaScript encoding
      • Use of semicolons
      • Case sensitivity
      • Comments
      • White spaces
      • Literals
      • Identifiers
      • Reserved words in JavaScript
    • The proper guide to semicolon in JavaScript
      • Rules of automatic semicolon insertion
  • Notes

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...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book 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