Javascript算法和数据结构学习
发布日期:2021-05-07 18:04:49 浏览次数:19 分类:技术文章

本文共 1860 字,大约阅读时间需要 6 分钟。

It always seems impossible until it’s done.

英文单词

Assignment
Destructuring
opposite 对立,相对
Curriculum 课程

一个重要的点就是要及时进行复习。

JAVAScript学习目录大纲

Basic Javascript

在这里插入图片描述

ES6 powerful Features

箭头函数

模块
Promise
generators
let and const
在这里插入图片描述
Object.freeze(obj);

const myFunc = () => "value";

对象的解构复制

数组的展开…

我觉得你可能不理解Destructuring这个词的意思,但是你肯定会使用,因为太简单了,这就好比我们生活中一些常见的事物背后对应着一个罕见的学术名词的时候,那么你肯定会说为什么不起一个简单的名字呢?只能说简单的名字已经被占了。NaCL 是非常常见的。NaCL是什么?就是食盐啊。

class关键字

Use getters and setters to Control Access to an Object

Create a Module Script

 

export

When you export a variable or function, you can import it in another file and use it without having to rewrite the code. You can export multiple things by repeating the first example for each thing you want to export, or by placing them all in the export statement of the second example, like this:
export { add, subtract };
import

Use * to Import Everything from a File

export default:

import default

在这里插入图片描述

Promise make a promise to sth

A promise has three states: pending, fulfilled, and rejected.

regular expression

match

search
replace

/${pattern}/${flag}

test 方法是regex上的方法,返回值true, false

regexVar.test(stringVar)

match是string上的方法

stringVar.match(regexVar)

flag

ig

greedy match

lazy match

begin ^

end $

缩写

\w
\W
\d
\D
Positive and Negative Lookahead

Debugging

语法错误

运行错误
实现错误

工具和方法

console.log
typeof

Basic Data Structure

Array

Object

Basic Algorithm Script

一些逻辑练习题

Object Oriented Programming

Use Dot Notation to Access the Properties of an Object

instanceof

Prototype
Since all instances automatically have the properties on the prototype, think of a prototype as a “recipe” for creating objects. Note that the prototype for duck and canary is part of the Bird constructor as Bird.prototype. Nearly every object in JavaScript has a prototype property which is part of the constructor function that created it.
Prototype

Functional Programming

上一篇:Data Visualization-FreeCodeCamp
下一篇:前端基础知识学习FreeCodeCamp

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年03月17日 22时20分04秒