没有合适的资源?快使用搜索试试~ 我知道了~
首页Learning JavaScript Data Structures and Algorithms, 2nd Edition
Learning JavaScript Data Structures and Algorithms, 2nd Edition
5星 · 超过95%的资源 需积分: 15 56 下载量 180 浏览量
更新于2023-03-16
评论 2
收藏 10.98MB PDF 举报
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页未读,继续阅读
zxkid
- 粉丝: 324
- 资源: 227
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- stc12c5a60s2 例程
- Android通过全局变量传递数据
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2