没有合适的资源?快使用搜索试试~ 我知道了~
首页Learning JavaScript Data Structures and Algorithms, 2nd Edition
Learning JavaScript Data Structures and Algorithms, 2nd Edition

Title: Learning JavaScript Data Structures and Algorithms, 2nd Edition Author: Loiane Groner Language: English Published by: Packtpub Publication Month: Jun 2016 Format: true PDF
资源详情
资源评论
资源推荐


Second Edition
Loiane Groner
Hone your skills by learning classic
data structures and algorithms in JavaScript
Learning JavaScript
Data Structures
and Algorithms

Second Edition
First published: October 2014
Second edition: June 2016
Production reference: 1160616
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78528-549-3
www.packtpub.com
Copyright © 2016 Packt Publishing
Learning JavaScript
Data Structures and Algorithms

Preface
1
Chapter 1: JavaScript—A Quick Overview
7
JavaScript data structure and algorithms
8
Setting up the environment
8
The minimum setup to work with JavaScript
9
Using web servers (XAMPP)
10
It's all about JavaScript (Node.js)
12
JavaScript basics
13
Variables
15
Variable scope
16
Operators
17
Truthy and falsy
20
Functions of the equals operators (== and ===)
21
Control structures
24
Conditional statements
24
Loops
26
Functions
27
Object-oriented programming in Javascript
28
Debugging and tools
30
Introducing ECMAScript
31
ECMAScript 6 and ECMAScript 7
31
The compatibility table
31
Using Babel.js
32
ECMAScript 6 functionalities
33
Declaring variables with let instead of var
33
Variables scope with let
34
Constants
36
Template literals
37
Arrow functions
37
Default parameter values for functions
38
Declaring the spread and rest operators
39
Enhanced object properties
40
Object-oriented programming with classes
41
Inheritance
42
Working with getters and setters
43
Contents

[ ii ]
Other functionalities
44
ECMAScript 7 functionalities
44
ES6 and ES7 backward compatibility
44
Summary
45
Chapter 2: Arrays
46
Why should we use arrays?
46
Creating and initializing arrays
47
Accessing elements and iterating an array
47
Adding elements
49
Using the push method
49
Inserting an element in the first position
49
Using the unshift method
50
Removing elements
50
Removing an element from first position
51
Using the shift method
51
Adding and removing elements from a specific position
52
Two-dimensional and multidimensional arrays
53
Iterating the elements of two-dimensional arrays
54
Multi-dimensional arrays
55
References for JavaScript array methods
56
Joining multiple arrays
57
Iterator functions
57
Iterating using the every method
58
Iterating using the some method
58
Iterating using forEach
59
Using map and filter
59
Using the reduce method
59
ECMAScript 6 and new Array functionalities
60
Iterating using forEach with arrow functions
61
Iterating using the for…of loop
61
Using the new ES6 iterator (@@iterator)
62
Array entries, keys, and values
62
Using the from method
63
Using Array.of
64
Using the fill method
64
Using the copyWithin method
65
Sorting elements
66
Custom sorting
67
Sorting strings
68
Searching
69
剩余302页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论2