---
# System prepended metadata

title: C_008筆記
tags: [javascript]

---

僅截圖可作為三明治補充的部份

[TOC]

## 沒有透過var宣告的變數
![image](https://hackmd.io/_uploads/rJmUtMe8C.png)


## 樣板字面值
![image](https://hackmd.io/_uploads/SkpIDGeLA.png)


## i++ 與 ++i
![image](https://hackmd.io/_uploads/HJ7KOzx80.png)

## 逗號運算子
![image](https://hackmd.io/_uploads/HJi1FfeIR.png)

## ||和&&
![image](https://hackmd.io/_uploads/SkFlcMgLC.png)
![image](https://hackmd.io/_uploads/HkZ7cfxLA.png)

### 參數預設檢查
![image](https://hackmd.io/_uploads/B1cNFVZLR.png)
![image](https://hackmd.io/_uploads/HJhutVZI0.png)


## 函式
### arguments
![image](https://hackmd.io/_uploads/rk2z6flIR.png)
![image](https://hackmd.io/_uploads/rJPNTzeUR.png)
![image](https://hackmd.io/_uploads/S1GSaflIA.png)
箭頭函式沒有arguments這個物件，要用其餘參數

### void
![image](https://hackmd.io/_uploads/SJx0aMeU0.png)
![image](https://hackmd.io/_uploads/SkD-0zeUR.png)
![image](https://hackmd.io/_uploads/SkNmCMg80.png)

### Promise
![image](https://hackmd.io/_uploads/Ska_0fx8R.png)
![image](https://hackmd.io/_uploads/SJUYAMe8R.png)

### setTimeout, setInterval
![image](https://hackmd.io/_uploads/rkvm17xUA.png)
![image](https://hackmd.io/_uploads/BylUJQlIC.png)
#### 要怎麼取消？
![image](https://hackmd.io/_uploads/HkZdk7xUA.png)


## 物件
### 物件實字
![image](https://hackmd.io/_uploads/ryShDMe8C.png)


---
### 刪除屬性
![image](https://hackmd.io/_uploads/H15gdzlLC.png)
![image](https://hackmd.io/_uploads/B1mbdGe8R.png)

---
### 實體的概念
![image](https://hackmd.io/_uploads/ByqmizlU0.png)
![image](https://hackmd.io/_uploads/ry-SsfgUR.png)

---

![image](https://hackmd.io/_uploads/Bk0eDGx8C.png)


---
#### get和set
![image](https://hackmd.io/_uploads/ry3WqfbUR.png)

![image](https://hackmd.io/_uploads/By_HcM-U0.png)
![image](https://hackmd.io/_uploads/rJLJiMbIA.png)


---
![image](https://hackmd.io/_uploads/B1Z-X7lI0.png)
#### 封裝類
![image](https://hackmd.io/_uploads/HJZgNXlL0.png)
#### 工具類
1. Math
![image](https://hackmd.io/_uploads/Syuw4XxIA.png)
2. Date
![image](https://hackmd.io/_uploads/Sk-_EXl8A.png)
![image](https://hackmd.io/_uploads/By_sV7xI0.png)
![image](https://hackmd.io/_uploads/BJrlr7eUA.png)
![image](https://hackmd.io/_uploads/SJjfBQx80.png)
3. RegExp
![image](https://hackmd.io/_uploads/rkivHmgI0.png)

#### 錯誤類
他只介紹了try...catch


## This
### .call(), .apply()
![image](https://hackmd.io/_uploads/SJnNe7gU0.png)

## Prototype
### Object.setPrototypeOf()
![image](https://hackmd.io/_uploads/rJmZuQl8R.png)
![image](https://hackmd.io/_uploads/HkvX_me8C.png)
![image](https://hackmd.io/_uploads/ByG4dXlIA.png)
![image](https://hackmd.io/_uploads/HySPdmlUA.png)


---

![image](https://hackmd.io/_uploads/HJMRuXeUA.png)

## Class
![image](https://hackmd.io/_uploads/BJWqBMZ8C.png)

### Class和建構函式的差異
![image](https://hackmd.io/_uploads/HkIMLzWUC.png)
![image](https://hackmd.io/_uploads/S19_UfbIA.png)
