Learning JavaScript Data Structures and Algorithms : Write complex and powerful JavaScript code using the latest ECMAScript, 3rd Edition.
A data structure is a particular way of organizing data in a computer to utilize resources efficiently. Data structures and algorithms are the base of every solution to any programming problem. With this book, you will learn to write complex and powerful code using the latest ES 8 features.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Edición: | 3rd ed. |
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: JavaScript
- A Quick Overview; JavaScript data structure and algorithms; Setting up the environment; The minimum setup to work with JavaScript; Using web servers; Node.js http-server; JavaScript basics; Variables; Scope variable; Operators; Truthy and falsy; Functions of the equals operators (== and ===); Control structures; Conditional statements; Loops; Functions; Object-oriented programming in JavaScript; Debugging and tools; Debugging with VSCode; Summary.
- Chapter 2: ECMAScript and TypeScript OverviewECMAScript or JavaScript?; ES6, ES2015, ES7, ES2016, ES8, ES2017, and ES. Next; The compatibility table; Using Babel.js; ECMAScript 2015+ functionalities; let and const instead of var; Variables scope with let and const; Template literals; Arrow functions; Default parameter values for functions; Declaring the spread and rest operators; Enhanced object properties; Object-oriented programming with classes; Inheritance; Working with getters and setters; Exponentiation operator; Modules; Running ES2015 modules in the browser and with Node.js.
- Using native ES2015 imports in Node.jsRunning ES2015 modules in the browser; ES2015+ backward compatibility; Introducing TypeScript; Type inference; Interfaces; Generics; Other TypeScript functionalities; TypeScript compile-time checking in JavaScript files; Summary; Chapter 3: Arrays; Why should we use arrays?; Creating and initializing arrays; Accessing elements and iterating an array; Adding elements; Inserting an element at the end of the array; Using the push method; Inserting an element in the first position; Using the unshift method; Removing elements.
- Removing an element from the end of the arrayRemoving an element from the first position; Using the shift method; Adding and removing elements from a specific position; Two-dimensional and multi-dimensional arrays; Iterating the elements of two-dimensional arrays; Multi-dimensional arrays; References for JavaScript array methods; Joining multiple arrays; Iterator functions; Iterating using the every method; Iterating using the some method; Iterating using forEach; Using map and filter; Using the reduce method; ECMAScript 6 and new array functionalities; Iterating using the for ... of loop.
- Using the @@iterator objectArray entries, keys, and values; Using the from method; Using the Array.of method; Using the fill method; Using the copyWithin method; Sorting elements; Custom sorting; Sorting strings; Searching; ECMAScript 2015
- the find and findIndex methods; ECMAScript 2016
- using the includes method; Outputting the array into a string; The TypedArray class; Arrays in TypeScript; Summary; Chapter 4: Stacks; Creating a JavaScript data structure and algorithm library; The stack data structure; Creating an array-based Stack class; Pushing elements to the stack.