# 🏅 Day 13 - 物件操作 ### 題目 以下是製作麵包的食譜,請新增一個名為 breadRecipe 的物件,並依照以下要求設定屬性: 1. 新增一個名為 ingredients 的屬性,其值為一個陣列,包含 "高筋麵包粉"、" 牛奶"、"酵母"、"糖"、"鹽"、"奶油"。 2. 新增一個名為 bakeTime 的屬性,其值為 30。 3. 新增一個名為 difficulty 的屬性,其值為 "簡單"。 4. 新增一個名為 seasoning 的屬性,其值為一個物件,包含: - 屬性名稱: sugar - 值:"22g" - 屬性名稱: salt - 值:"10g" - 屬性名稱: pepper - 值:"10g" ```javascript= let breadRecipe = { /* 程式碼撰寫處 */ }; ``` ## 回報流程 將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔! 解答位置請參考下圖(需打開程式碼的部分觀看) ![](https://i.imgur.com/vftL5i0.png) <!-- 解答: ``` let breadRecipe = { ingredients: ["高筋麵包粉", "牛奶", "酵母", "糖", "鹽", "奶油"], bakeTime: 30, difficulty: "簡單", seasoning: { sugar: "22g", salt: "10g", pepper: "10g" } }; ``` --> 回報區 --- | # | Discord | CodePen / 答案 | |---|---|---| | 1. | Wayne_957 | [Codepen](https://codepen.io/Wayne957/pen/ZYzqzEw?editors=0012) | | 2. | sui_hsilan | [Codepen](https://codepen.io/suihsilan/pen/qEWJWxa?editors=0010) | | 3. | daffytseng | [Codepen](https://codepen.io/Daffy-Tseng/pen/pvzxzLm)| | 4. | yutzu | [Codepen](https://codepen.io/dtafsrmf-the-lessful/pen/ByBqBGq?editors=0010)| | 5. | 馬德 | [Codepen](https://codepen.io/maywang/pen/YPKJKme?editors=0010)| | 6. | Bnson | [CodePen](https://codepen.io/DevilButler/pen/vEBVYxz?editors=0011) | |7.|Nora| [CodePen](https://codepen.io/ehguhcmy-the-reactor/pen/KwPGKGg?editors=1111) | | 8. | bian_yang_mofa | [CodePen](https://codepen.io/cssf998811/pen/bNbmNpw?editors=0010) | | 9. |potato_17859| [CodePen](https://codepen.io/Girl-Lee/pen/MYgPYVG?editors=0010) | | 10. |will092317| [CodePen](https://codepen.io/xuazoblx-the-flexboxer/pen/QwLZwXm?editors=0011) | | 11. |ss585801| [CodePen](https://codepen.io/ss585801/pen/yyBxBde?editors=1010) | | 12. | CC(tofuuu_cat) | [CodePen](https://codepen.io/CC-cat/pen/ZYzqbXB?editors=0010) | | 13. | poyi | [CodePen](https://codepen.io/poyi-the-flexboxer/pen/xbKywez?editors=0010) | | 14. | ZoeKang |[CodePen](https://codepen.io/byehywmx-the-animator/pen/OPLByeP?editors=0010) | | 15. | adengg |[CodePen](https://codepen.io/Osases/pen/mybzVpe?editors=0012) | | 16. | Tammy |[CodePen](https://codepen.io/Tammy_Tsai/pen/MYgPyqN) | | 17. | JanllyGuo |[CodePen](https://codepen.io/kedugaw/pen/ogvaLWq?editors=0010) | | 18. | wuyuli_21403 |[CodePen](https://codepen.io/Job-Wilhelm/pen/vEBVKqM?editors=1010) | | 19. | JerryOOO |[CodePen](https://codepen.io/fatiangel/pen/EaYdZXX?editors=0011) | | 20. | pja._. | [CodePen](https://codepen.io/PJA0103/pen/PwYyEez?editors=0011) | | 21. | Tau |[CodePen](https://codepen.io/Tau-Hsu/pen/gbYBvVK?editors=0010) | | 22. | HarryKuo | [CodePen](https://codepen.io/harry_kuo/pen/yyBRjgo?editors=0012) | 23| janetlai| [CodePen](https://codepen.io/eiddkqxz-the-builder/pen/emOPQbv?editors=1111) | 24. | Xusn | [CodePen](https://codepen.io/YiXuan-Chen-the-vuer/pen/ByBGymK) | | 25. | 地呱 | [Codepen](https://codepen.io/wiibxzdw-the-bold/pen/ZYzmMxa?editors=0012) | | 26. | ally_tsao| [Codepen](https://codepen.io/ggnhmrxv-the-scripter/pen/gbYQNvj?editors=0012)| | 27. | helena| [Codepen](https://codepen.io/helena27/pen/wBwRGby?editors=1010)| | 28. | Lee | [CodePen](https://codepen.io/leemo-tseng/pen/KwPbgvg?editors=0012) | | 29. | Ali | [CodePen](https://codepen.io/Alicia1117/pen/yyBGoRb) | | 30. | shiang | [CodePen](https://codepen.io/shiang29/pen/gbYZqNW?editors=1011) | | 31. | Arsian Kuo | [CodePen](https://codepen.io/Arsian-Kuo/pen/VYZgxwr)| | 32. | JC | [CodePen](https://codepen.io/lifetimingwhisper/pen/LEPqwVy)| | 33. | 0111 | [CodePen](https://codepen.io/0111mina/pen/MYgxJxd?editors=0011) | | 34. | Rylee | [CodePen](https://codepen.io/ryleezheng/pen/ByBeaRL) | 35 | hsin yu | [CodePen](https://codepen.io/tina2793778/pen/WbeBRRp?editors=0010) | | 36 | chun0075 | [CodePen](https://codepen.io/Lin-Angela/pen/raBbRbR) | | 37 | hsiang4100 | [CodePen](https://codepen.io/vvnrbgxl-the-typescripter/pen/dPbERgy?editors=0012) | | 38 | li-wei-min | [CodePen](https://codepen.io/leewayne/pen/ZYEbdXm) | <!--可複製下方格式 | | | [CodePen]() | -->