---
# System prepended metadata

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

---

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

# 🏅 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／其他回饋                          |
|:----:|:------------:|:-------------------------------------------------------------------:|
|  01  |    Camila    |         [CodePen](https://codepen.io/camilalo/pen/wvbwGjW)          |
|  02  |     Aya      |        [Codepen](https://codepen.io/NoNameNote/pen/OJYLVrX)         |
|  03  |    詹姆士    |   [Codepen](https://codepen.io/z111048/pen/XWwrVBj?editors=1112)    |
|  04  |     知夜     | [Codepen](https://codepen.io/XiaoXiaTian2/pen/bGybaLZ?editors=1111) |
|  05  |    jerry     |        [Codepen](https://codepen.io/sony791210/pen/xxNKYZY)         |
|  06  | Michelle0417 |       [Codepen](https://codepen.io/michelle0417/pen/dyEbJwm)        |
|  07  |     Emma     |          [Codepen](https://codepen.io/huang_L/pen/pomzaVP)          |
|  08  |     tim     |          [Codepen](https://codepen.io/jskrtivy-the-animator/pen/KKLPQQW?editors=1111)          |
|  09  |     mike_2049     |          [Codepen](https://codepen.io/mike2049/pen/ZENzrGL)   |
| 10 | Eden | [Codepen](https://codepen.io/iseden/pen/wvbwyxG)|
|  11  | Larry | [Codepen](https://codepen.io/larrylinr5/pen/vYwBRxL?editors=0012) |
| 12 | Chia Pin | [Codepen](https://codepen.io/joker-cat/pen/LYoPdvN)|
| 13 | asabulu_von_f | [Codepen](https://codepen.io/asabulu/pen/WNBeMMG)|
| 14 | easonpan | [Codepen](https://codepen.io/easonpan0904/pen/QWRLmvQ)|
|  15  | oyll | [Codepen](https://codepen.io/dizzydog-rgb/pen/abroYrO) |
|  16  | 白白 | [Codepen](https://codepen.io/YuBai/pen/KKYOOLz?editors=0012) |
|  17  | Zander | [Codepen](https://codepen.io/chuangmaster/pen/abroYxz) |
|  18  | s870012 | [Codepen](https://codepen.io/idzrvbnl-the-bashful/pen/PovYejB?editors=0011) |
|  19  | WEIWEI | [Codepen](https://codepen.io/weiwei93/pen/OJYLZpw?editors=0012) |
|  20  | tzhengliin(子恆) | [Codepen](https://codepen.io/tzhengliin/pen/OJYLZEr) |
|  21  | Ana | [Codepen](https://codepen.io/Ana-Wu/pen/eYaOrod?editors=0011) |
|  22  | boin | [Codepen](https://codepen.io/boinji/pen/MWdgGde) |
|  23  | macihuang | [Codepen](https://codepen.io/macy1215/pen/GRaKGEb) |
|  24  | Daphne | [Codepen](https://codepen.io/DaphneShen/pen/pomzKpe?editors=1111) |
|  25  | Eileen | [Codepen](https://codepen.io/Eileen-io/pen/GRaKQYg) |
|  26  | 小米 | [Codepen](https://codepen.io/hlgudwue-the-typescripter/pen/QWRLQrG?editors=0111)/不會第四題 |
|  27  | kawa | [Codepen](https://codepen.io/z83xji6/pen/eYaOKoM?editors=1011) |
|  28  | yunyouob | [Codepen](https://codepen.io/ozkkvlsu-the-animator/pen/ExzYeEN?editors=1111)|
|  29  | JY | [Codepen](https://codepen.io/jylee0805/pen/YzbKeQB) |
|  30  | Mionne | [Codepen](https://codepen.io/neohyntw/pen/YzbKdeY) |
|  31  | Lauren | [Codepen](https://codepen.io/Lauren8/pen/GRaKPvd?editors=0012) |
|  32  | hongru-LyNn | [Codepen](https://codepen.io/LyNnYWu/pen/KKLPJmg) |
|  33  | anderson666 | [Codepen](https://codepen.io/goodmanbuild/pen/LYoPqva) |
|  34  | Antonio | [Codepen](https://codepen.io/gwhvusel-the-builder/pen/rNgBPGG) |
|  35  | Tough life | [Codepen](https://codepen.io/hakuei0115/pen/QWRLoWg?editors=1111) |
|  36  | Andy_12 | [Codepen](https://codepen.io/lifann/pen/eYaOXaa?editors=0011) |
|  36  | KUN. | [Codepen](https://codepen.io/barry91205/pen/NWVKoQd?editors=1111) |
|  37  | oldan | [Codepen](https://codepen.io/Enix-Chien-/pen/yLWLyLZ) |
|  38  | LGJason | [Codepen](https://codepen.io/j811108/pen/PovowMV) |
|  39  | Jiahe | [Codepen](https://codepen.io/Andywang-95/pen/pomovPm?editors=0012) |
|  40  | damon0323 | [Codepen](https://codepen.io/swk9eny2/pen/eYaYpKb?editors=0011) |
|  41  | Sammy | [Codepen](https://codepen.io/fsczdlla-the-bold/pen/qBGBOxW?editors=0011) |
|  42  | yuan! | [Codepen](https://codepen.io/townyuan/pen/XWwWdRa) |
|  43  | Haley | [Codepen](https://codepen.io/wsx3690/pen/YzbzWWz?editors=1112) |
|  44  | Tanyaaaa | [Codepen](https://codepen.io/tanya77777/pen/oNRNLEN) |
|  45  | maru3096 | [Codepen](https://codepen.io/deamru/pen/JjqjRYG) |
|  46  | MY | [Codepen](https://codepen.io/ahmomoz/pen/MWdWbye?editors=1111) |
|  47  | 阿若 | [Codepen](https://codepen.io/skar5268/pen/QWRWmex) |
|  48  | Winnie | [Codepen](https://codepen.io/codepen-io-winnie/pen/Rwmbyze?editors=0011) |
|  49  | Casey | [Codepen](https://codepen.io/Caseyyyyyyyyyyyyyy/pen/WNBNEwg)|
|  50  | 薛逢 | [Codepen](https://codepen.io/vogqyrrj-the-selector/pen/abrojJx) |
|  51  | Ariel | [Codepen](https://codepen.io/ariel0510/pen/yLWyYvv?editors=0011) |
| 52 | Six | [Codepen](https://codepen.io/Max-kuo/pen/bGyNaPQ?editors=0012) |
| 53 | 小趴 | [Codepen](https://codepen.io/papa2415/pen/yLWyjQW)|
| 54 | ninii傳教士 | [Codepen](https://codepen.io/niiniiii/pen/XWwWgrq?editors=0011)|
|  55  | zaoannihao | [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/ZENYjqo?editors=1112) |
|  56  | Yuwen | [Codepen](https://codepen.io/Yuwen-the-reactor/pen/oNRgpgg?editors=0012) |
| 57 | yo0x0oy |[Codepen](https://codepen.io/Dayton-Hsieh/pen/NWVPJQv)|
| 58 | 快樂小豬 |[Codepen](https://codepen.io/rtjowfyf-the-lessful/pen/KKLwEWW)|
| 59  | 黛西 | [Codepen](https://codepen.io/ChiashengLin/pen/mdYeMyd?editors=1112) |
|  60  | l.shua_228 | [Codepen](https://codepen.io/Shan-Hua-Lin-LIN-HUA/pen/dyEXVEM) |
|  61  | haojing | [Codepen](https://codepen.io/hjxu/pen/eYadMoY?editors=0011) |
|  62  | Shen | [Codepen](https://codepen.io/yan-Shen-the-decoder/pen/mdYrQVO) |
|  63  | Sonia | [Codepen](https://codepen.io/YUJOU/pen/rNgWvWV?editors=1111) |
|  64  | maruko1105 | [Codepen](https://codepen.io/marukox1105/pen/BaeRjQd?editors=0112) |
| 65 | ChrisLin | [Codepen](https://codepen.io/vllzfzco-the-reactor/pen/xxNWeeg?editors=1111) |
| 66 | Shiny | [Codepen](https://codepen.io/shinychen/pen/xxvdEdy)|  


---
<!--【快速複製】    
|  num  | user | [Codepen]() |
-- >
