---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day15 - 陣列物件資料處理"
tags: [軟體工程師體驗營 - 2024]

---

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

# 🏅 JS 任務 Day15 - 陣列物件資料處理

### 題目一：物件加值
* 請透過 `addContent` 函式，來增減 `obj` 物件內容。
``` =JavaScript
const obj = {
    sons:[]
}
// input 輸入
addContent("Bob")
addContent("Tom")

// output 輸出 obj 的結果
{
    sons:["Bob"]
}

{
    sons:["Bob","Tom"]
}
```

### 題目二：
* 請透過 `addContent2` 函式，來增減 `obj2` 陣列內容。
``` =JavaScript
const obj2 = []
// input 輸入
addContent2("Bob")
addContent2("Tom")

// output 輸出 obj2 的結果
[
    {name:"Bob"}
]


[
    {name:"Bob"},
    {name:"Tom"},
]
```

### 題目三：
* 請透過 `addContent3` 函式，來增加 `obj3` 物件內容。
``` =JavaScript
const obj3 = {
    male:0,
    female:0
}
// input 輸入
addContent3("male")
addContent3("male")
addContent3("female")
// output 輸出 obj3 的結果
{
    male:1,
    female:0
}


{
    male:2,
    female:0
}

{
    male:2,
    female:1
}
```


## 回報流程

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

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


回報區
---

| 報數 | Discord 名字  |  Codepen／其他回饋                                                         |
|:----:|:-------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|
|  01  | Aya | [Codepen](https://codepen.io/NoNameNote/pen/vYwOGgd) |
|  02  | Larry | [Codepen](https://codepen.io/larrylinr5/pen/XWwbYLM?editors=0012) |
|  03  | 詹姆士 | [Codepen](https://codepen.io/larrylinr5/pen/XWwbYLM?editors=0012) |
|  04  | han | [Codepen](https://codepen.io/iamHanCheng/pen/NWVqzZK)|
|  05  | Michelle0417 | [Codepen](https://codepen.io/michelle0417/pen/GRaJGew) |
|  06  | Emma | [Codepen](https://codepen.io/huang_L/pen/MWdwBEo) |
| 07 | Eden |[Codepen](https://codepen.io/iseden/pen/QWRbBzp)|
| 08 | tim |[Codepen](https://codepen.io/jskrtivy-the-animator/pen/vYwOaPB?editors=1112)|
| 09 | liugod3824🔥 |[Codepen](https://codepen.io/kjssvtkr-the-animator/pen/abrOjgQ?editors=0012)✔|
| 10 | JUN_ |[Codepen](https://codepen.io/Jun-L/pen/pomJZZw)|
| 11 | s870012 |[Codepen](https://codepen.io/idzrvbnl-the-bashful/pen/qBGdyMQ?editors=0011)|
|  12  | zaoannihao | [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/BaeNOOm?editors=1111) |
|  13  | Lauren | [Codepen](https://codepen.io/Lauren8/pen/vYwOzbg?editors=1112) |
|  14  | Tough life | [Codepen](https://codepen.io/hakuei0115/pen/QWRbZwJ) |
|  15  | jerrys | [Codepen](https://codepen.io/sony791210/pen/VwOLEYp) |
|  16  | Chia Pin | [Codepen](https://codepen.io/joker-cat/pen/abrORLm) |
|  17  | JY | [Codepen](https://codepen.io/jylee0805/pen/zYQGJmg?editors=0011) |
|  18  | 小趴  | [Codepen](https://codepen.io/papa2415/pen/eYaNQJv)|
|  19  | macihuang  | [Codepen](https://codepen.io/macy1215/pen/OJYVaLG)|
|  20  | Winnie | [Codepen](https://codepen.io/codepen-io-winnie/pen/YzbXRzO?editors=0011) |
|  21  | 白白 | [Codepen](https://codepen.io/YuBai/pen/oNRXQdJ?editors=0011) |
|  22  | easonpan  | [Codepen](https://codepen.io/easonpan0904/pen/ZENGmrJ)|
|  23  | kawa | [Codepen](https://codepen.io/z83xji6/pen/gOJpQQb?editors=0011) |
|  24  | yunyouob | [Codepen](https://codepen.io/ozkkvlsu-the-animator/pen/OJYVrzg?editors=1111)|
|  25  | Yuwen | [Codepen](https://codepen.io/Yuwen-the-reactor/pen/bGydzdj?editors=0012) |
|  26  | Jiahe | [Codepen](https://codepen.io/Andywang-95/pen/eYaNPjZ?editors=0012) |
|  27  | Tanyaaaa | [Codepen](https://codepen.io/tanya77777/pen/QWRbovN) |
|  28  | anderson666 | [Codepen](https://codepen.io/goodmanbuild/pen/NWVqJob) |
|  29  | Andy_12 | [Codepen](https://codepen.io/lifann/pen/oNRjvxY?editors=0011) |
|  30  | Antonio | [Codepen](https://codepen.io/gwhvusel-the-builder/pen/bGyVbrQ) |
|  31  | LGJason | [Codepen](https://codepen.io/j811108/pen/OJYyXzL) |
| 32 | yo0x0oy | [Codepen](https://codepen.io/Dayton-Hsieh/pen/LYopRNo)|
| 33 | Sammy | [Codepen](https://codepen.io/fsczdlla-the-bold/pen/jOobreV?editors=0011)|
|  34  | yuan! | [Codepen](https://codepen.io/townyuan/pen/QWRjGqY) |
|  35  | Mionne | [Codepen](https://codepen.io/neohyntw/pen/VwOvPxq) |
|  34  | hongru-LyNn | [Codepen](https://codepen.io/LyNnYWu/pen/eYapgKE?editors=0011) |
|  35  | 知夜 | [Codepen](https://codepen.io/XiaoXiaTian2/pen/xxNwgjj?editors=1111) |
|  36  | boin | [Codepen](https://codepen.io/boinji/pen/GRapOpw)|
|  37  | Zander | [Codepen](https://codepen.io/chuangmaster/pen/rNgOpad) |
|  38  | ninii傳教士 | [Codepen](https://codepen.io/niiniiii/pen/qBGOgZO?editors=0011) |
|  39  | oyll | [Codepen](https://codepen.io/dizzydog-rgb/pen/oNRbNNG) |
|  40  | 黛西 | [Codepen](https://codepen.io/ChiashengLin/pen/rNgxGaP?editors=1112) |
|  41  | 快樂小豬 | [Codepen](https://codepen.io/rtjowfyf-the-lessful/pen/RwmrMay) |
|  42  | Ariel | [Codepen](https://codepen.io/ariel0510/pen/eYaJaMa?editors=0012) |
|  43  | Camila | [Codepen](https://codepen.io/camilalo/pen/yLWemoo) |
|  44  | Casey | [Codepen](https://codepen.io/Caseyyyyyyyyyyyyyy/pen/ExzKYmB) |
|  45  | Eileen | [Codepen](https://codepen.io/Eileen-io/pen/KKLzywE) |
|  46  | 阿若 | [Codepen](https://codepen.io/skar5268/pen/vYwKJWv) |
|  47  | Shen | [Codepen](https://codepen.io/yan-Shen-the-decoder/pen/zYQKQRL) |
|  48  | hao jing | [Codepen](https://codepen.io/hjxu/pen/GRareQZ?editors=1011) |
|  49  | l.shua_228 | [Codepen](https://codepen.io/Shan-Hua-Lin-LIN-HUA/pen/VwOpZPx) |
| 50 | ChrisLin | [Codepen](https://codepen.io/vllzfzco-the-reactor/pen/OJYBrXK?editors=1111) |
|  51  | maru3096 | [Codepen](https://codepen.io/deamru/pen/PoryjYM) |


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