---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day10 - 陣列 + 物件"
tags: [軟體工程師體驗營 - 2023]

---

---
tags: 軟體工程師體驗營 - 2023
---

# 🏅 JS 任務 Day10 - 陣列 + 物件

### 題目一：依照文字描述物件

請宣告一個 `family` 的變數，賦予物件型別，並嘗試在裡頭加上以下資訊

* 母親叫做`Mary`
* 父親叫做 `Bob`
* 有三個孩子，分別叫做 `John`、`Tom`、`Kate`
* 養了五隻貓、七隻狗、八頭牛、九隻蜘蛛
* 房貸是否繳清：否


### 題目二：看圖設計物件
* 請宣告一個 `room` 的變數，賦予物件型別，盡量描述下方圖片內容，例：有多少人開會，男女比例、文具數量等等。
![](https://i.imgur.com/EFx4fsv.jpg)

### 題目三：擴充物件內容
* 請透過 `addKeyValue` 函式，來增減 `obj` 物件內容。
``` =JavaScript
const obj = {
    name        
    people:3
};
// input 輸入
addKeyValue("name","Mike")
addKeyValue("people",2)
addKeyValue("people",4)

// output 輸出
//1
{
    name:"Mike",
    people:3
}
//2
{
    name:"Mike",
    people:5
}
//3
{
    name:"Mike",
    people:9
}
```

### 題目四：進階題，不適合新手
請宣告一個 `obj` 函式，並用`obj()[2]()`方式執行，並會 return 回傳 "hi"

```
obj()[2]()

// output 輸出
"hi"
```

## 回報流程

1. 將答案貼在 Codepen 並複製 Codepen 連結貼至「回報區」回報
（也可以將答案直接貼至「回報區」）

![](https://i.imgur.com/vftL5i0.png)


回報區
---

| 報數 |  Discord 名字   |                           Codepen／其他回饋                           |
|:----:|:---------------:|:---------------------------------------------------------------------:|
|  1   |    薯餅#3581    |        [Codepen](https://codepen.io/ColdingPoTaTo/pen/qBJoLNz)        |
|  2   |    snow#0255    |          [Codepen](https://codepen.io/snow21723/pen/rNqdovb)          |
|  3   |   Judy☻ #7874   |    [Codepen](https://codepen.io/hsiaohan/pen/wvYmNax?editors=1011)    |
|  4   |    翔.#0859     |  [Codepen](https://codepen.io/energy95272z/pen/OJBvdNE?editors=0012)  |
|  5   |   Eden.C#9359   |           [codepen](https://codepen.io/iseden/pen/eYPMbjX)            |
|  6   |  Quantum#6093   |        [Codepen](https://codepen.io/Min-Hao-Hung/pen/yLRKZJd)         |
|  7   |   Rochel#4754   | [Codepen](https://codepen.io/rochelwang1205/pen/yLRKZMm?editors=0010) |
|  8   |   Berlin#7338   |    [Codepen](https://codepen.io/3qberlin/pen/JjmLwmd?editors=0110)    |
|  9   |     mo#0447     |    [Codepen](https://codepen.io/mozentw/pen/KKGoJLp?editors=0010)     |
|  10  |    DeLi#8324    |        [Codepen](https://codepen.io/delichaomoon/pen/poxLYjb)         |
|  11  | andychiou#4830  |        [Codepen](https://codepen.io/andychiou1113/pen/MWPVLVw)        |
|  12  |    Tami#6742    |      [Codepen](https://codepen.io/wqsdqbjn-the-vuer/pen/MWPVxYj)      |
|  13  |   Snadra#1987   |          [Codepen](https://codepen.io/mlqmhltg/pen/QWZmobb)           |
|  14  | Kulimusoda#2785 |  [Codepen](https://codepen.io/yuch3n_chen/pen/JjmLzEv?editors=0012)   |
|  15  | alexmav04#5048  |   [Codepen](https://codepen.io/alexmav04/pen/vYVRPrq?editors=0012)    |
|  16  |   ABOOS#6276    |   [Codepen](https://codepen.io/guhungyin/pen/WNazPWe?editors=0011)    |
|  17  |  肉個阿倫#7172  |          [Codepen](https://codepen.io/i9574385/pen/VwEXRxR)           |
|  18  |  黑白兔#0684  |          [Codepen](https://codepen.io/johnny329/pen/bGmvZgd)           |
|  19  |   しあわせね#0036    |   [Codepen](https://codepen.io/delichaomoon/pen/poxLYjb)    |
|  20  |   JimWang#6134    |   [Codepen](https://codepen.io/Jim-Wang-the-selector/pen/eYPMXLy?editors=0011)    |
|  21  |   K（アギルダー）#0386    |   [Codepen](https://codepen.io/klay376014/pen/xxyWNwV)    
|  22  |peihsuan #6315 |[Codepen](https://codepen.io/peihsuanlai/pen/NWOYoXJ)||
| 23 | 銀光菇#1692 | [Codepen](https://codepen.io/genesynthesis/pen/abRYMpq) |
| 24 | SKey#9905 | [Codepen](https://codepen.io/Dale-Chien/pen/ExdEJyr) |
| 25 | 辣椒#1002 | [Codepen](https://codepen.io/chilichen118/pen/qBJoGgP) |
| 26 | gahwa#3562 | [Codepen](https://codepen.io/gahwa17/pen/XWxELVV) |
| 27 | Aritan#1931 | [Codepen](https://codepen.io/Aritan/pen/qBJoeWv) |
| 28 | Eero#1147 | [Codepen](https://codepen.io/Eero-Chiao/pen/BaqrEaQ?editors=1011) |
| 29 | Jacky7035#9423 | [Codepen](https://codepen.io/adens123/pen/VwEXJEN) |
|30|汪汪#4486|[Codepen](https://codepen.io/hunwooooof/pen/mdzxvmx)|
| 31 | ChaosTu#9311 | [Codepen](https://codepen.io/torotu/pen/QWZrWdy?editors=0012) |
| 32 | Akira#9996 | [Codepen](https://codepen.io/Akira-Chen/pen/PoyeorZ) |
| 33 | jia yu#8896 | [Codepen](https://codepen.io/fjqxaznl-the-reactor/pen/rNqvOBj?editors=1111) |
|34|雲漢#5319|[codepen](https://codepen.io/keon981/pen/JjmLgWQ?editors=0011)
|35|David0799#4415|[codepen](https://codepen.io/David0799/pen/OJBZyGM)
|36|jackwu#4437|[codepen](https://codepen.io/jackwu1588003/pen/abRGvaK)
|37|jelly77#2088|[codepen](https://codepen.io/Ming-chiang/pen/yLRjYwz)
|38|jimhop#6510|[Codepen](https://codepen.io/jimsansssss/pen/OJBZyqM?editors=1111)
|39|PayRoom#8328|[CodePen](https://codepen.io/water38198/pen/JjmvXBN)
|40|Bruce-Lee#0629|[CodePen](https://codepen.io/xxhdklwi-the-decoder/pen/dygeMbp?editors=0011)
|41|N0c7iluc3n7#4390|[CodePen](https://codepen.io/huang-yu-cheng/pen/yLRjJBe)
| 42 | Jennifer Chuang#3937 | [Codepen](https://codepen.io/yujhen/pen/ExdLaLB?editors=1111) |
| 43 | Hanana#9025 | [Codepen](https://codepen.io/hananalin/pen/WNazWWK) |
| 44 | Evaxof#1266 | [Codepen](https://codepen.io/evaxof/pen/XWxEGPE?editors=1010) |
| 45 | Yuu#5361 | [Codepen](https://codepen.io/alycehwy/pen/poxVEJd) |
| 46 | 姜承#8204 | [Codepen](https://codepen.io/Troy0718/pen/ZEqopQo) |
| 47 | 泊岸#3466 | [Codepen](https://codepen.io/qoq77416416/pen/wvYmNBX?editors=0012) |
|48|阿榮#8277|[Codepen](https://codepen.io/codeitaday/pen/RweyjEz?editors=0012)|
|49|Uli#1946|[Codepen](https://codepen.io/uli1313/pen/YzJLaxR)|
|50|兔子#6746|[Codepen](https://codepen.io/CarrotDetector/pen/YzJLOdq)|
|51|liam9930#4129|[Codepen](https://codepen.io/jgnjfvvt-the-lessful/pen/eYPrOdY)|
|52|yoyo#1003|[Codepen](https://codepen.io/pen/NWOMebp)|
|53|司機叔叔#2463|[Codepen](https://codepen.io/bigv5566/pen/poxVqLL?editors=1010)|
|54|肉魚#2149|[Codepen](https://codepen.io/zoechen13/pen/poxVGOM)|
| 55 | ray0304#2070 | [Codepen](https://codepen.io/Ray0304/pen/zYmjXPM) |
| 56 | bonnieli1414#4906 | [Codepen](https://codepen.io/bonnieli1414/pen/bGmKwqB?editors=0011) |
| 57 | Zhong#8917 | [Codepen](https://codepen.io/klfjrlod-the-sasster/pen/RweJoPo) |
| 58 | 魚翅#3100 | [Codepen](https://codepen.io/Fukahire/pen/dygKNpd) |
| 59 | jun777#2468 | [Codepen](https://codepen.io/js18151102/pen/OJBEjxX?editors=0011) |
| 60 | HsuanTang#1349 | [Codepen](https://codepen.io/HsuanTang/pen/WNayEVd) |
| 61 | PoWei#8484 | [Codepen](https://codepen.io/harrison-wei-lai/pen/bGmKmPQ?editors=1011) |
|62|Yvonne#2721|[Codepen](https://codepen.io/Evonne/pen/bGmKZxb)
|63|Janet#5784|[Codepen](https://codepen.io/janetlinnn/pen/JjmZOjW?editors=1111)
|64|duck#3310|[Codepen](https://codepen.io/papy0715/pen/oNayrad?editors=0011)
|65|andrew0404#4576|[Codepen](https://codepen.io/Loonng/pen/gOBKVMY?editors=1111)
|65|kai#1098|[Codepen](https://codepen.io/ahkai/pen/ExdEMQL)|
|66|charlottelee849#0366|[Codepen](https://codepen.io/char849/pen/dygjMrN?editors=0010)|
|67|長方形#9612|[Codepen](https://codepen.io/imjjw/pen/abRKPGQ)|
|68|變羊魔法#6372|[Codepen](https://codepen.io/cssf998811/pen/LYgBbWE)|
|69|鉦勝#8333|[Codepen](https://codepen.io/atckmax823/pen/ExdeyLg?editors=0011)|
|70|leo.yujie#8280|[Codepen](https://codepen.io/peihsin-the-scripter/pen/yLRxGLN)|
|71|townyuan#2653|[Codepen](https://codepen.io/townyuan/pen/ZEqMwWr)|
|72|yen#5757|[Codepen](https://codepen.io/TZU-HUANG-YEN/pen/LYgJoWo?editors=0010)|
|73|MitA#7407|[Codepen](https://codepen.io/qaz15996398/pen/poxxvMP)|
|74|東東#5015|[Codepen](https://codepen.io/wearymask/pen/Jjmmdgj)|
|75|ABow_Chen#0800|[Codepen](https://codepen.io/fred39392001/pen/oNaaLWz)|
|76|鄭舜仁#6606|[Codepen](https://codepen.io/randomno/pen/VwEVZyJ)|
|77|Tim123#8361|[Codepen](https://codepen.io/Wangtim4/pen/vYVQZLL?editors=1111)|
|78|JasonChang#7847|[Codepen](https://codepen.io/jsonChangJava/pen/dygQjWo)|
|79|wendyli#2155|[Codepen](https://codepen.io/rockayumitw/pen/ZEqmmVZ?editors=0011)|
|80|FanJJ#8061|[Codepen](https://codepen.io/yfchenn/pen/YzJRjLG?editors=0011)|
|81|JhouHank#8132|[Codepen](https://codepen.io/JhouHank/pen/NWOegxp)|
|82|喬喬#2824|[Codepen](https://codepen.io/joanne-wei/pen/PoyyEJL)|
|83|Jaredlee#5887|[Codepen](https://codepen.io/jared-lee/pen/oNamvMP)|
|87|科科#5463|[Codepen](https://codepen.io/ilove941120/pen/LYgqxLv?editors=1112)|
|88|羽毛#5463|[Codepen](https://codepen.io/KYuFeather/pen/ZEqwKwK)|
|89|alll6z#9204|[Codepen](https://codepen.io/A6Z/pen/qBJgJRX)|
|90|Ataraxia#9977|[Codepen](https://codepen.io/ataraxia8888/pen/qBJPWag)|
|91|柚子#3958|[Codepen](https://codepen.io/as6625998/pen/dygEJKb?editors=0011)|
|92|Ann Chou#0146|[Codepen](https://codepen.io/annchou_illu/pen/yLRdWbq)|
| 93 | Kaya#8857 | [Codepen](https://codepen.io/laron9486/pen/yLQygWG) |
| 94 | Tina02#2691 | [Codepen](https://codepen.io/chjitlox-the-bashful/pen/yLQoPpM) |
| 95 | betty#0693 | [Codepen](https://codepen.io/betty-hu/pen/xxQaBdp?editors=0012) |
| 96 | hoyiiiii | [Codepen](https://codepen.io/hoyii/pen/wvVNjgP?editors=0012) |