---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day18 - 混合題目"
tags: [軟體工程師體驗營 - 2023]

---

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

# 🏅 JS 任務 Day18 - 混合題目


### 題目一：陣列與物件排序
* 依照物件中每個人的分數大小做排序

``` =JavaScript
const scoreAry = [
    {
        name:"葉子",
        score:99
    },
    {
        name:"洧杰",
        score:60
    },
    {
        name:"卡斯伯",
        score:80
    }
];

// input 輸入
callAry("正序",scoreAry)
callAry("反序",scoreAry)

// output 
// 第一筆
[
    {
        name:"洧杰",
        score:60
    },
    {
        name:"卡斯伯",
        score:80
    },
    {
        name:"葉子",
        score:99
    }
]
// 第二筆
[
    {
        name:"葉子",
        score:99
    },
    {
        name:"卡斯伯",
        score:80
    },
    {
        name:"洧杰",
        score:60
    },
    
]
```

### 題目二：篩選資料
* 請篩選出第一個參數，並比對 `scoreAry2` 看有誰達到條件
``` =JavaScript
const scoreAry2 = [
    {
        name:"葉子",
        score:99
    },
    {
        name:"洧杰",
        score:60
    },
    {
        name:"卡斯伯",
        score:80
    }
];

// input 輸入
callAry2(80)
callAry2(99)
callAry2(100)
// output 

葉子卡斯伯分數有在80分以上
葉子分數有在99分以上
沒有人分數在100分以上
```

### 題目三：選出從零到指定數字範圍裡面的質數
``` =JavaScript
// input 輸入
prime(13)
prime(30)
prime(24)
prime(44)

// output  請以字串來顯示
"2,3,5,7,11"
"2,3,5,7,11,13,17,19,23,29"
"2,3,5,7,11,13,17,19,23"
"2,3,5,7,11,13,17,19,23,29,31,37,41,43"
```


## 回報流程

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

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


回報區
---

| 報數 | Discord 名字  |  Codepen／其他回饋                                                         |
|:----:|:-------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|
| 1 | 冬天#5215| [Codepen](https://codepen.io/winter_/pen/oNaJBjr)|
| 2 | Quantum#6093 | [Codepen](https://codepen.io/Min-Hao-Hung/pen/ExdGZRz)|
| 3 | Rochel#4754 | [Codepen](https://codepen.io/rochelwang1205/pen/JjmwEmj?editors=0110) |
| 4 | Tami#6742 | [Codepen](https://codepen.io/wqsdqbjn-the-vuer/pen/ZEqVLww) |
| 5 | jia yu#8896 | [Codepen](https://codepen.io/fjqxaznl-the-reactor/pen/GRYPWzX) |
6|雲漢#5319|[codepen](https://codepen.io/keon981/pen/abRPWjG?editors=0012)
| 7   | ChaosTu#9311         | [Codepen](https://codepen.io/torotu/pen/NWOejvq?editors=0012)                |
| 8   | Snadra#1987          | [Codepen](https://codepen.io/mlqmhltg/pen/yLRGMPm)                           |
| 9   | JimWang#6134         | [Codepen](https://codepen.io/Jim-Wang-the-selector/pen/eYPbvVN?editors=0012) |
| 10  | MitA#7407            | [Codepen](https://codepen.io/qaz15996398/pen/GRYPEqo)                        |
| 11  | gahwa#3562           | [Codepen](https://codepen.io/gahwa17/pen/RweEVLd)                            |
| 12  | peihsuan#6315        | [Codepan](https://codepen.io/peihsuanlai/pen/QWZzMvY)                        |
| 13  | Jacky7035#9423       | [Codepan](https://codepen.io/adens123/pen/GRYPmGV)                           |
| 14  | 姜承#8204            | [Codepan](https://codepen.io/Troy0718/pen/QWZzQPd)                           |
| 15  | Akira#9996           | [Codepan](https://codepen.io/Akira-Chen/pen/xxymWYN)                         |
| 16  | jelly77#2088         | [Codepan](https://codepen.io/Ming-chiang/pen/XWxoEWY?editors=0011)           |
| 17  | wiimax#4564          | [Codepen](https://codepen.io/willismax/pen/BaqvxPq?editors=0011)             |
| 18  | N0c7iluc3n7#4390     | [Codepen](https://codepen.io/huang-yu-cheng/pen/ExdGRbb)                     |
| 19  | HsuanTang#1349       | [Codepen](https://codepen.io/HsuanTang/pen/PoyXRLj)                          |
| 20  | Janet#5784           | [Codepen](https://codepen.io/janetlinnn/pen/eYPbKeW?editors=1111)            |
| 21  | Jennifer Chuang#3937 | [Codepan](https://codepen.io/yujhen/pen/GRYPyqO?editors=1112)                |
| 22  | Nex#2964             | [Codepan](https://codepen.io/Samuel_D4C/pen/LYgMrvM)                         |
| 23  | David0799#4415       | [Codepan](https://codepen.io/David0799/pen/qBJLMdb?editors=0010)             |
| 24  | SKey#9905            | [Codepan](https://codepen.io/Dale-Chien/pen/abRPGxJ)                         |
| 25  | 翔.#0859             | [Codepan](https://codepen.io/energy95272z/pen/eYPbQzr?editors=0012)          |
| 26  | PayRoom#8328         | [CodePen](https://codepen.io/water38198/pen/xxymeRw)                         |
| 27  | 銀光菇#1692          | [Codepen](https://codepen.io/genesynthesis/pen/VwEqdbG)                      |
| 28  | Berlin#7338          | [Codepen](https://codepen.io/3qberlin/pen/VwEgZdV?editors=0110)              |
| 29  | 辣椒#1002            | [Codepen](https://codepen.io/chilichen118/pen/PoyVwwK)                       |
| 30  | snow%0255            | [Codepen](https://codepen.io/snow21723/pen/MWPLYex)                          |
| 31  | Uli#1946             | [Codepen](https://codepen.io/uli1313/pen/bGmzNJz)                            |
| 32  | 兔子#6746            | [Codepen](https://codepen.io/CarrotDetector/pen/XWxOXMr)                     |
|33|肉個阿倫#7172|[Codepen](https://codepen.io/i9574385/pen/MWPLyGJ)|
|34|東東#5015|[Codepen](https://codepen.io/wearymask/pen/BaqMKYX)|
|35|Yvonne#2721|[Codepen](https://codepen.io/Evonne/pen/QWZYKKB?editors=0010)
|36|FanJJ#8061|[Codepen](https://codepen.io/yfchenn/pen/PoyVxBz?editors=0011)
|37|jun777#2468|[Codepen](https://codepen.io/js18151102/pen/dygawyo?editors=0011)
|38|K（アギルダー）#0386|[Codepen](https://codepen.io/klay376014/pen/ZEqwPjo)|
|39|yoyo#1003|[Codepen](https://codepen.io/pen/MWPLwVJ)|
|40|jimhop#6510|[Codepen](https://codepen.io/jimsansssss/pen/ExdrOwe?editors=1111)
|41|JasonChang#7847|[Codepen](https://codepen.io/jsonChangJava/pen/OJBqweR)
|42|鄭舜仁#6606|[Codepen](https://codepen.io/randomno/pen/jOedKOj)
|43|喬喬#2824|[Codepen](https://codepen.io/joanne-wei/pen/KKGErKV)
|44|Kulimusoda#2785|[Codepen](https://codepen.io/yuch3n_chen/pen/mdzYMNO?editors=0012)|
|45|townyuan#2653|[Codepen](https://codepen.io/townyuan/pen/wvYLxGY)|
|46|liam9930#4129|[Codepen](https://codepen.io/jgnjfvvt-the-lessful/pen/VwVZzmX?editors=0012)|
| 47 | Kaya#8857 | [Codepen](https://codepen.io/laron9486/pen/GRwoKQB) |
| 48 |Judy☻ #7874 |[Codepen](https://codepen.io/hsiaohan/pen/ExOZroL)|
| 49 |小明#4408 |[Codepen](https://codepen.io/ujlylmbv-the-lessful/pen/RwqVYro)|
| 50 |Ann Chou#0146 |[Codepen](https://codepen.io/annchou_illu/pen/KKrqKKN)|
| 51 |hoyiiiii |[Codepen](https://codepen.io/hoyii/pen/jENWrQy?editors=1012)|
