---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day17 - 陣列操作"
tags: [軟體工程師體驗營 - 2023]

---

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

# 🏅 JS 任務 Day17 - 陣列操作


### 題目一：陣列索引
* 陣列索引，點出是第幾筆資料
``` =JavaScript
const numAry = [1,3,4,6,8];

// input 輸入
checkNum(3)
checkNum(9)
checkNum(83)
checkNum(6)

// output 
位置在第2筆
false
false
位置在第4筆
```

### 題目二：陣列相乘
* 將陣列裡面的各個陣列數字相乘

``` =JavaScript
const doubleAry = [
    [1,2,3],
    [3,5,6],
    [2,2,2,2],
];

// input 輸入
callAry(doubleAry)

// output 
"第1個陣列相乘是6，第2個陣列相乘是90，第三個陣列相乘是16"
```

### 題目三：陣列排序
* 正序、反序設計
``` =JavaScript
const a = [1,3,4,6,8];
const b = [3,6,12];
// input 輸入
sortAry("從小到大",[8,3,1,7])
sortAry("從小到大",[99,22,11,33])
sortAry("從大到小",[7,2,33,4])


// output
[1,3,7,8]
[11,22,33,99]
[33,7,4,2]
```

## 回報流程

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

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


回報區
---

| 報數 |     Discord 名字     |                              Codepen／其他回饋                               |
|:----:|:--------------------:|:----------------------------------------------------------------------------:|
|  1   |      Tami#6742       |         [Codepen](https://codepen.io/wqsdqbjn-the-vuer/pen/XWxyrRE)          |
|  2   |      雲漢#5319       |        [codepen](https://codepen.io/keon981/pen/YzJRzYp?editors=1012)        |
|  3   |     JimWang#6134     | [codepen](https://codepen.io/Jim-Wang-the-selector/pen/bGmQGxK?editors=1111) |
|  4   |      汪汪##4486      |             [Codepen](https://codepen.io/hunwooooof/pen/yLRQLRr)             |
|  5   |      魚翅#3100       |              [Codepen](https://codepen.io/Fukahire/pen/MWPzYbw)              |
|  6   |     Quantum#6093     |            [Codepen](https://codepen.io/Min-Hao-Hung/pen/XWxyJXX)            |
|  7   |    Izumi 泉#9691     |             [Codepen](https://codepen.io/kouta-f2e/pen/yLRQyqO)              |
|  8   |     銀光菇#1692      |           [Codepen](https://codepen.io/genesynthesis/pen/KKGrwYz)            |
|  9   |     ChaosTu#9311     |        [Codepen](https://codepen.io/torotu/pen/xxyQbep?editors=0012)         |
|  10  |     PayRoom#8328     |             [CodePen](https://codepen.io/water38198/pen/ZEqmGrr)             |
|  11  |    peihsuan#6315     |            [Codepen](https://codepen.io/peihsuanlai/pen/zYmMYyx)             |
|  12  |     Berlin#7338      |       [Codepen](https://codepen.io/3qberlin/pen/ExdOjPQ?editors=0010)        |
|  13  | K（アギルダー）#0386 |             [Codepen](https://codepen.io/klay376014/pen/Jjmedpw)             |
|  14  |      gahwa#3562      |              [Codepen](https://codepen.io/gahwa17/pen/jOeQbBK)               |
|  15  |     Rochel#4754      |    [codepen](https://codepen.io/rochelwang1205/pen/ExdOVvq?editors=0010)     |
|  16  |       翔.#0859       |     [codepen](https://codepen.io/energy95272z/pen/ZEqmbVd?editors=0012)      |
|  17  |    Jacky7035#9423    |              [codepen](https://codepen.io/adens123/pen/MWPzamz)              |
|  18  |     jia yu#8896      |        [codepen](https://codepen.io/fjqxaznl-the-reactor/pen/poxQgKj)        |
|19|肉個阿倫#7172|[Codepen](https://codepen.io/i9574385/pen/PoyxNrG)|
|20| CMLB0212#8960 |[codepen](https://codepen.io/Chungmin0212/pen/vYVQKEL?editors=0011)|
|21| jackwu#4437 |[codepen](https://codepen.io/jackwu1588003/pen/KKGrMWB)|
|22| 姜承#8204 |[codepen](https://codepen.io/Troy0718/pen/PoyxbNY)|
|23| jelly77#2088 |[codepen](https://codepen.io/Ming-chiang/pen/ZEqmpPB?editors=0011)|
|24| 司機叔叔#2463 |[codepen](https://codepen.io/bigv5566/pen/vYVQyKP)|
|25| HsuanTang#1349 |[codepen](https://codepen.io/HsuanTang/pen/YzJRNrG)|
|26| Janet#5784 |[codepen](https://codepen.io/janetlinnn/pen/GRYwrxE?editors=1111)|
|27| Snadra#1987 |[codepen](https://codepen.io/mlqmhltg/pen/MWPzwbo)|
|28| Akira#9996 |[codepen](https://codepen.io/Akira-Chen/pen/rNqQyKW)|
|29| snow#0255 |[codepen](https://codepen.io/snow21723/pen/VwEVbRZ)|
|30| Jennifer Chuang#3937 |[codepen](https://codepen.io/yujhen/pen/eYPQBLr?editors=1111)|
|31| jun777#2468 |[codepen](https://codepen.io/js18151102/pen/poxQKNN?editors=0011)|
|32| yoyo#1003 |[codepen](https://codepen.io/crpbugqy-the-typescripter/pen/dygQKxx)|
|33|Yvonne#2721|[codepen](https://codepen.io/Evonne/pen/ExdOpeY?editors=0010)
|34| Kulimusoda#2785 |[codepen](https://codepen.io/yuch3n_chen/pen/zYmMMbO?editors=0011)|
|33|wiimax#4564|[codepen](https://codepen.io/willismax/pen/YzJRmVr?editors=0011)
|34|wendyli#2155|[codepen](https://codepen.io/rockayumitw/pen/zYmyYNe?editors=0011)
| 35 | 辣椒#1002| [Codepen](https://codepen.io/chilichen118/pen/KKGrJNg)|
| 36 | David0799#4415| [Codepen](https://codepen.io/David0799/pen/abRPdXW?editors=0010)|
| 37 | SKey#9905| [Codepen](https://codepen.io/Dale-Chien/pen/ZEqVOej)|
| 38 | 黑白兔#0684| [Codepen](https://codepen.io/johnny329/pen/dygwOew)|
| 39 | 冬天#5215| [Codepen](https://codepen.io/winter_/pen/NWOEPBK)|
| 40 | MitA#7407 | [Codepen](https://codepen.io/qaz15996398/pen/OJBrWBj)|
| 41 | 兔子#6746 | [Codepen](https://codepen.io/CarrotDetector/pen/ZEqVaPw)|
| 42 | Uli#1946 | [Codepen](https://codepen.io/uli1313/pen/mdzaGmq)|
| 43 | jimhop#6510 | [Codepen](https://codepen.io/jimsansssss/pen/YzJdvLB?editors=1111)|
|44|東東#5015|[Codepen](https://codepen.io/wearymask/pen/zYmeBoL)|
|45|鄭舜仁#6606|[Codepen](https://codepen.io/randomno/pen/yLRZKRK)|
|46|Aritan#1931|[Codepen](https://codepen.io/Aritan/pen/wvYNxva)|
|47|FanJJ#8061|[Codepen](https://codepen.io/yfchenn/pen/VwEgBmN?editors=0011)|
|48|DeLi#8324|[Codepen](https://codepen.io/delichaomoon/pen/xxyBVXd)|
|49|Eero#1147|[Codepen](https://codepen.io/Eero-Chiao/pen/BaqbprK)|
|50|Yuu#5361|[Codepen](https://codepen.io/alycehwy/pen/WNamXNv)|
|51|JasonChang#7847|[Codepen](https://codepen.io/jsonChangJava/pen/MWPxBVE)|
|52|喬喬#2824|[Codepen](https://codepen.io/joanne-wei/pen/dygaqvX)|
|53|羽毛#5463|[Codepen](https://codepen.io/KYuFeather/pen/PoygPmM)|
|54|townyuan#2653|[Codepen](https://codepen.io/townyuan/pen/eYPwZVa)|
|54|liam9930#4129|[Codepen](https://codepen.io/jgnjfvvt-the-lessful/pen/VwVZWjK?editors=0011)|
| 55 | Kaya#8857 | [Codepen](https://codepen.io/laron9486/pen/LYXpKBM) |
| 56 | 小明#4408 | [Codepen](https://codepen.io/ujlylmbv-the-lessful/pen/rNQWmGr?editors=1010) |
| 57 | Ann Chou#0146 | [Codepen](https://codepen.io/annchou_illu/pen/GRwrqxv) |
| 58 | Judy☻#7874 | [Codepen](https://codepen.io/hsiaohan/pen/rNqEOPm?editors=1011)|
| 59 | hoyiiiii | [Codepen](https://codepen.io/hoyii/pen/dyxEJVE?editors=0012)|