iT邦幫忙

2021 iThome 鐵人賽

DAY 20
0
Modern Web

YDKJS 一邊讀 You Don't Know JS Yet 一邊卡關一邊弄懂的日子 ԅ(≖‿≖ԅ)系列 第 20

Day20 - this&Object Prototypes Ch3 Objects - Review 開頭

  1. Object 有 兩種寫法,作者建議有特殊需求再用 constructed form
    • literal form : {}[] ...
    • constructed form : new Object()new Array() ...
  2. Object type
    • 臭臭 bug typeof null 會顯示 Object
    • Object 的 subtype 們
      1. 可以用 liter form 或是 constructed form 建立都 OK : Object、Array、Function、RegExp
      2. 沒有 literal form 的孩子: new Date()new Error()

今日理解先到這邊,如果理解有誤希望能再提點,謝謝大家 ԅ(≖‿≖ԅ)


上一篇
Day19 - this&Object Prototypes Ch3 Objects - Iteration
下一篇
Day20 - this&Object Prototypes Ch3 Objects - Review 開頭
系列文
YDKJS 一邊讀 You Don't Know JS Yet 一邊卡關一邊弄懂的日子 ԅ(≖‿≖ԅ)30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言