---
title: "Emma Shih (@emma163) | Hashnode"
description: "Technical sharing from a FE Developer. Read the latest articles by Emma Shih on Hashnode."
url: "https://hashnode.com/@emma163"
---

@emma163

# Emma Shih

@emma163 · Taiwan, Taipei · Joined April 2023

Technical sharing from a FE Developer

### [TypeScript 學習系列 | 什麼是 TypeScript？ 類型有哪些？](https://emmaswy.hashnode.dev/typescript-typescript?utm_source=hashnode&utm_medium=feed)

TypeScript學習指南：了解TypeScript類型，區分動態/靜態類型語言，探討基礎類型，運用any和聯合類型。提高編碼效率，避免錯誤。

1 min read · [emmaswy.hashnode.dev](https://emmaswy.hashnode.dev/typescript-typescript?utm_source=hashnode&utm_medium=feed)

[May 17, 2023](https://hashnode.com/posts/typescript-typescript/64647e1c97e0f5562bef5199)

### [JavaScript 作用域和閉包](https://emmaswy.hashnode.dev/closure?utm_source=hashnode&utm_medium=feed)

關注問題 this 的不同應用場景，如何取值？ 手寫 bind 函數 知識點 作用域和自由變量 全局作用域 函數作用域 塊級作用域 閉包：兩種常見方式 & 自由變量查找規則 this 閉包 作用域應用特殊狀態，有兩種狀況 function create() { let a = 100; return function () { console.log(a); }; } let fn = create(); let a = 200; fn();...

3 min read · [emmaswy.hashnode.dev](https://emmaswy.hashnode.dev/closure?utm_source=hashnode&utm_medium=feed)

[Apr 22, 2023](https://hashnode.com/posts/closure/644385beda73423128104fb1)

### [JavaScript 原型和原型鏈](https://emmaswy.hashnode.dev/javascript-1?utm_source=hashnode&utm_medium=feed)

💡 為什麼原型和 原型鏈很重要？因為JS 本身是基於原型繼承的語言， ES6 之後可以使用 Class 實作繼承 Overview 範圍 如何準確判斷一個變量是不是陣列 class 的原型本質 知識點 涵蓋以下三大點 class 實現繼承 instanceOf 使用 原型和原型鏈 class class 本身像是模板的作用，可以在 constructor 內對屬性定義賦值，透過 class 可以聲明 new 實例 constructor 屬性 方法 // 類 // ...

2 min read · [emmaswy.hashnode.dev](https://emmaswy.hashnode.dev/javascript-1?utm_source=hashnode&utm_medium=feed)

[Apr 18, 2023](https://hashnode.com/posts/javascript-1/643e5a3e3baa268e96cc33b6)

### [JavaScript 幾種少見的方法：padStart、padEnd](https://emmaswy.hashnode.dev/javascript-padstartpadend?utm_source=hashnode&utm_medium=feed)

padStart / padEnd 用途：字符串的補全方法，用在要增加前綴或是後綴，例如小數點 0.00 或是檔案類型 123.jpg

1 min read · [emmaswy.hashnode.dev](https://emmaswy.hashnode.dev/javascript-padstartpadend?utm_source=hashnode&utm_medium=feed)

[Apr 15, 2023](https://hashnode.com/posts/javascript-padstartpadend/643ab2190936c3de336f2f87)

### [跨域請求如何攜帶 Cookie](https://emmaswy.hashnode.dev/cookie?utm_source=hashnode&utm_medium=feed)

在前端請求的時候設置 request 對象屬性 withCredentials 為 true 什麼是 withCredentials? withCredentials 是 XMLHttpRequest 中的一個 Boolean 類型， 只是是否使用 cookies, authorized header（頭

1 min read · [emmaswy.hashnode.dev](https://emmaswy.hashnode.dev/cookie?utm_source=hashnode&utm_medium=feed)

[Apr 15, 2023](https://hashnode.com/posts/cookie/643aabb4b4339fb0a9f219f1)
