--- tags: 軟體工程師體驗營 - 2024 --- # 🏅 JS 任務 Day13 - 函式、陣列、物件讀取 ### 題目一: 函式 return 物件 ``` =JavaScript // input 輸入 a().hi a().sayYo a().cry // output 輸出 "hi" "yo~" "嗚嗚" ``` ### 題目二:陣列包函式 ``` =JavaScript // input 輸入 b[0](3) b[0](4) // output 輸出 "你輸入的是3" "你輸入的是4" ``` ### 題目三:物件包函式 ``` =JavaScript // input 輸入 obj.a() obj.b() // output 輸出 "你執行的是 a 函式" "你執行的是 b 函式" ``` ### 題目四:進階題,不適合新手:arguments return function ```=JavaScript // input 輸入 sum(4,5) sum(4)(5) sum(7,9) sum(7)(9) // output 輸出 9 9 16 16 ``` ## 回報流程 1. 將答案貼在 Codepen 並複製 Codepen 連結貼至「回報區」回報 (也可以將答案直接貼至「回報區」) ![](https://i.imgur.com/vftL5i0.png) 回報區 --- | 報數 | Discord 名字 | Codepen/其他回饋 | |:----:|:-------------------:|:---------------------------------------------------------------------------------------------------------------------------------:| | 01 | Aya | [Codepen](https://codepen.io/NoNameNote/pen/NWVPMoO) | | 02 | 詹姆士 | [Codepen](https://codepen.io/z111048/pen/eYamKOm?editors=0011) | | 03 | larry | [Codepen](https://codepen.io/larrylinr5/pen/Povwera?editors=0012) | | 04 | Lauren | [Codepen](https://codepen.io/Lauren8/pen/qBGEKqj?editors=1111) | | 05 | Jiahe | [Codepen](https://codepen.io/Andywang-95/pen/bGyNKVz?editors=0012) | |06|Michelle0417|[Codepen](https://codepen.io/michelle0417/pen/mdYyKEK)| | 07 | Tough life | [Codepen](https://codepen.io/hakuei0115/pen/mdYyLZX?editors=0112) | | 08 | yuan! | [Codepen](https://codepen.io/townyuan/pen/NWVPzyQ) | | 09 | 白白 | [Codepen](https://codepen.io/YuBai/pen/MWdYXry?editors=0011) | | 10 | han | [Codepen](https://codepen.io/iamHanCheng/pen/bGyNMXQ?editors=0011) | | 11 | JUN_ | [Codepen](https://codepen.io/Jun-L/pen/zYQxabE?editors=0011) | 12 | mike_2049 | [Codepen](https://codepen.io/mike2049/pen/abrzGeZ?editors=1010) | 13 | zaoannihao | [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/GRagGVa) | |14|小趴| [Codepen](https://codepen.io/papa2415/pen/ExzapyL)| |15| Chia Pin | [Codepen](https://codepen.io/joker-cat/pen/zYQxLRL)| | 16 | Andy_12 | [Codepen](https://codepen.io/lifann/pen/YzbPOPw?editors=0011) | | 17 | s870012 | [Codepen](https://codepen.io/idzrvbnl-the-bashful/pen/vYwEzgX?editors=0011) | | 18 | easonpan | [Codepen](https://codepen.io/easonpan0904/pen/gOJbjgO)| | 19 | LGJason | [Codepen](https://codepen.io/j811108/pen/PovwaRL) | | 20 | Tanyaaaa | [Codepen](https://codepen.io/tanya77777/pen/mdYyzyx) | | 21 | Emma | [Codepen](https://codepen.io/huang_L/pen/XWwJxVp) | | 22 | KUN. | [Codepen](https://codepen.io/barry91205/pen/vYwEVpa) | | 23 | Winnie | [Codepen](https://codepen.io/codepen-io-winnie/pen/WNBbgLY?editors=0011) | | 24 | Ariel | [Codepen](https://codepen.io/ariel0510/pen/yLWyRpY?editors=0012) | | 25 | ninii傳教士 | [Codepen](https://codepen.io/niiniiii/pen/zYQxmNK?editors=0011) | | 26 | Mionne | [Codepen](https://codepen.io/neohyntw/pen/bGyNQmq) | | 27 | kawa | [Codepen](https://codepen.io/z83xji6/pen/PovwXWj?editors=1011) | | 28 | tim | [Codepen](https://codepen.io/jskrtivy-the-animator/pen/mdYyaqm) | | 29 | yunyouob | [Codepen](https://codepen.io/ozkkvlsu-the-animator/pen/GRagzKx?editors=1111)| | 30 | anderson666 | [Codepen](https://codepen.io/goodmanbuild/pen/oNRgVzQ)| | 31 | leo.chang | [Codepen](https://codepen.io/s16777216/pen/BaeyEQd) | | 32 | hongru-LyNn | [Codepen](https://codepen.io/LyNnYWu/pen/qBGEKgo?editors=0011) | | 33 | macihuang | [Codepen](https://codepen.io/macy1215/pen/WNBbPEq) | | 34 | JY | [Codepen](https://codepen.io/jylee0805/pen/abrzxEb?editors=1112) | | 35 | Zander | [Codepen](https://codepen.io/chuangmaster/pen/dyEPxaN) | | 36 | Camila | [Codepen](https://codepen.io/camilalo/pen/mdYJJaQ) | | 37 | yo0x0oy | [Codepen](https://codepen.io/Dayton-Hsieh/pen/dyEoYKE)| | 38 | Antonio | [Codepen](https://codepen.io/gwhvusel-the-builder/pen/yLWydzo)| | 39 | Eileen | [Codepen](https://codepen.io/Eileen-io/pen/PovqNbB)| | 40 | Eden |[Codepen](https://codepen.io/iseden/pen/XWwJyNZ)| | 41 | jerry |[Codepen](https://codepen.io/sony791210/pen/PovweyQ)|\ | 42 | Yuwen | [Codepen](https://codepen.io/Yuwen-the-reactor/pen/mdYJwjd?editors=0012) | | 43 | boin |[Codepen](https://codepen.io/boinji/pen/oNRXyOE)| | 44 | maru3096 | [Codepen](https://codepen.io/deamru/pen/yLWNrvx) | | 45 | 知夜 | [Codepen](https://codepen.io/XiaoXiaTian2/pen/QWRjKRx?editors=1112) | | 46 | Haley | [Codepen](https://codepen.io/wsx3690/pen/JjqYvPm?editors=1012) | | 47 | oyll | [Codepen](https://codepen.io/dizzydog-rgb/pen/VwOeZZa) | | 48 | 黛西 | [Codepen](https://codepen.io/ChiashengLin/pen/QWRyLRR) | | 49 | 快樂小豬 | [Codepen](https://codepen.io/dizzydog-rgb/pen/VwOeZZa) | | 50 | Casey | [Codepen](https://codepen.io/Caseyyyyyyyyyyyyyy/pen/VwOeOba) | | 51 | 阿若 | [Codepen](https://codepen.io/skar5268/pen/gOJryxV) | | 52 | LiLiLiLi | [Codepen](https://codepen.io/jungang0414/pen/ZENOXbr?editors=0012) | | 53 | l.shua_228 | [Codepen](https://codepen.io/Shan-Hua-Lin-LIN-HUA/pen/abrmQXd) | | 54 | Shen | [Codepen](https://codepen.io/yan-Shen-the-decoder/pen/JjqRVbN) | | 55 | hao jing | [Codepen](https://codepen.io/hjxu/pen/VwOmpOB?editors=1011) | | 56 | 艾洛 | [Codepen](https://codepen.io/Ironance/pen/LYoWYaY) | | 57 | maruko1105 | [Codepen](https://codepen.io/marukox1105/pen/pomPbRe?editors=0112) | | 58 | Sonia | [Codepen](https://codepen.io/YUJOU/pen/XWwzWxj?editors=1011) | | 59 | ChrisLin | [Codepen](https://codepen.io/vllzfzco-the-reactor/pen/GRaGyXE?editors=1111) | --- <!--【快速複製】 | num | user | [Codepen]() | -- >
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up