© 2019

JavaScript Data Structures and Algorithms

An Introduction to Understanding and Implementing Core Data Structure and Algorithm Fundamentals


  • Combines clear explanations of data structure and algorithm theory with practical code samples, examples and exercises, all specifically relevant to JavaScript

  • Provides background information on object-oriented programming and native JavaScript concepts to help understand how everything fits together

  • Illustrates how these theoretical computer science concepts ties back to practical applications in software engineering


Table of contents

  1. Front Matter
    Pages i-xxi
  2. Sammie Bae
    Pages 1-11
  3. Sammie Bae
    Pages 13-20
  4. Sammie Bae
    Pages 21-34
  5. Sammie Bae
    Pages 35-51
  6. Sammie Bae
    Pages 53-82
  7. Sammie Bae
    Pages 83-88
  8. Sammie Bae
    Pages 89-97
  9. Sammie Bae
    Pages 99-115
  10. Sammie Bae
    Pages 117-123
  11. Sammie Bae
    Pages 125-149
  12. Sammie Bae
    Pages 151-161
  13. Sammie Bae
    Pages 163-177
  14. Sammie Bae
    Pages 179-192
  15. Sammie Bae
    Pages 193-203
  16. Sammie Bae
    Pages 205-243
  17. Sammie Bae
    Pages 245-271
  18. Sammie Bae
    Pages 273-301
  19. Sammie Bae
    Pages 303-320
  20. Sammie Bae
    Pages 321-338

About this book


Explore data structures and algorithm concepts and their relation to everyday JavaScript development. A basic understanding of these ideas is essential to any JavaScript developer wishing to analyze and build great software solutions.  

You'll discover how to implement data structures such as hash tables, linked lists, stacks, queues, trees, and graphs. You'll also learn how a URL shortener, such as, is developed and what is happening to the data as a PDF is uploaded to a webpage. This book covers the practical applications of data structures and algorithms to encryption, searching, sorting, and pattern matching.

It is crucial for JavaScript developers to understand how data structures work and how to design algorithms. This book and the accompanying code provide that essential foundation for doing so. With JavaScript Data Structures and Algorithms you can start developing your knowledge and applying it to your JavaScript projects today.


javascript prototypical inheritance algorithmic analysis design patterns object-oriented programming

Authors and affiliations

  1. 1.HamiltonCanada

About the authors

Sammie Bae is a data engineer at Yelp and has worked for the data platform engineering team at NVIDIA. He developed a deep interest in JavaScript during an internship at SMART Technologies (acquired by Foxconn), where he developed Node.js-based JavaScript APIs for serial port communication between electronic board drivers and a web application. Despite how relevant JavaScript is to the modern software engineering industry, there were no books that taught algorithms and data structures using JavaScript. Sammie understands how difficult these computer science concepts are and aims to make clear and concise explanations. 

Bibliographic information

  • Book Title JavaScript Data Structures and Algorithms
  • Book Subtitle An Introduction to Understanding and Implementing Core Data Structure and Algorithm Fundamentals
  • Authors Sammie Bae
  • DOI
  • Copyright Information Sammie Bae 2019
  • Publisher Name Apress, Berkeley, CA
  • eBook Packages Professional and Applied Computing Professional and Applied Computing (R0)
  • Softcover ISBN 978-1-4842-3987-2
  • eBook ISBN 978-1-4842-3988-9
  • Edition Number 1
  • Number of Pages XXI, 357
  • Number of Illustrations 136 b/w illustrations, 0 illustrations in colour
  • Topics Web Development
  • Buy this book on publisher's site
Industry Sectors
IT & Software
Finance, Business & Banking