---
# System prepended metadata

title: "\U0001F3C5 Day 05 - 賦值運算子與傳參考概念"
tags: [2025 Node.js 後端工程師培訓營]

---


# 🏅 Day 05 - 賦值運算子與傳參考概念

### 題目

以下兩題請合併為一份 CodePen 繳交，並透過「註解」進行回答。

問題一
---
了解賦值運算子，並計算出最後 console.log 印出的結果
```javascript=
let a = 1;
let b = 2;
a += 30;
a--;
b - 1;
a -= b;

console.log(a);
console.log(b);
```

問題二
---
請回答以下程式碼最後的 console.log 結果
```javascript=
let groupA = {
  people: 10,
  age: 20
};

let groupB = groupA;
groupB.people = 3;

console.log(groupA);
```

## 回報流程

將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔! 
解答位置請參考下圖（需打開程式碼的部分觀看）

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

<!-- 解答：

問題一：
a: 28
b: 2
（陷阱：b - 1 那行並未賦值，
所以其值並不會帶入 b）

問題二：
{
  people: 3,
  age: 20
}

-->




回報區
---
| #   | Discord | CodePen / 答案 |
| -------- | -------- | -------- |
| 1   | hsiang4100 | [Codepen](https://codepen.io/vvnrbgxl-the-typescripter/pen/wBwyZpb?editors=0011) |
| 2   | Tau | [Codepen](https://codepen.io/Tau-Hsu/pen/KwPQYEz?editors=0012) |
|3|-----這條線以下都麻糬-----|[Codepen](https://codepen.io/tsfaydhk-the-selector/pen/dPbdLEq?editors=0012)|
| 4   | sui_hsilan | [Codepen](https://codepen.io/suihsilan/pen/bNbLybd?editors=0010) |
| 5   | potato_17859 | [CodePen](https://codepen.io/Girl-Lee/pen/PwYQgrr?editors=0110) |
| 6   | 馬德 | [CodePen](https://codepen.io/maywang/pen/PwYQvZY?editors=0011) |
| 7   | ss585801 | [CodePen](https://codepen.io/ss585801/pen/bNbLyow?editors=0012) |
| 8   | Xuan | [CodePen](https://codepen.io/YiXuan-Chen-the-vuer/pen/ogvERoV) |
| 9  | ally_tsao           | [Codepen](https://codepen.io/ggnhmrxv-the-scripter/pen/qEWxGog?editors=0010)|
| 10 | HarryKuo |[Codepen](https://codepen.io/harry_kuo/pen/bNbLymq?editors=0011)|
| 11 | Lee | [Codepen](https://codepen.io/leemo-tseng/pen/jENZjPz?editors=0010)
| 12 | 地呱  |[Codepen](https://codepen.io/wiibxzdw-the-bold/pen/ByBYgZm?editors=0012) |
| 13 | Nora  |[Codepen](https://codepen.io/ehguhcmy-the-reactor/pen/MYgQMrx?editors=1111) |
| 14 | poyi |[Codepen](https://codepen.io/poyi-the-flexboxer/pen/emOVwya?editors=0010) |
| 15 | yutzu |[Codepen](https://codepen.io/dtafsrmf-the-lessful/pen/dPbdBwN?editors=0011) |
| 16  | Benson |[Codepen](https://codepen.io/DevilButler/pen/ogvqvrv?editors=0011) | 
| 17  | 柴郡貓 |[Codepen](https://codepen.io/cssf998811/pen/PwYRwPB?editors=0010) | 
| 18  | JC |[Codepen](https://codepen.io/lifetimingwhisper/pen/NPKYqjr) | 
| 19  | Ali | [Codepen](https://codepen.io/Alicia1117/pen/EaYEjmL)|
| 19  | CC(tofuuu_cat)	 | [Codepen](https://codepen.io/CC-cat/pen/gbYepja?editors=0010)|
| 20  | Tammy |   [Codepen](https://codepen.io/Tammy_Tsai/pen/WbezvJp) | 
| 21  | 五五(evelyn_hey2024) | [CodePen](https://codepen.io/EvelynCH/pen/bNbvpxB) |
| 22  | adengg | [CodePen](https://codepen.io/Osases/pen/EaYEKBG?editors=0010) |
| 23  | Jayhsu | [CodePen](https://codepen.io/Jay-Hsu-the-bold/pen/XJrEKbo) |
| 23  | chun0075 | [CodePen](https://codepen.io/Lin-Angela/pen/bNbveyx?editors=0011) |
| 24  | 佩妮 | [CodePen](https://codepen.io/bmxbpggh-the-flexboxer/pen/LEPdWzj?editors=1012) |
| 25  | ZoeKang | [CodePen](https://codepen.io/byehywmx-the-animator/pen/YPKaVyd?editors=0011)
| 26  | pja._. | [CodePen](https://codepen.io/PJA0103/pen/mybxmXb?editors=0011)
| 27  | JerryOOO | [CodePen](https://codepen.io/fatiangel/pen/QwLmqdE?editors=0011)
| 28  | helena | [CodePen](https://codepen.io/helena27/pen/dPbmjZY?editors=1011)
| 29 | Kai | [Codepen](https://codepen.io/beginneraboutlife116/pen/NPKYLwJ?editors=0012) | 
| 30 | Wayne_957 | [Codepen](https://codepen.io/Wayne957/pen/ZYzxyWM?editors=1010) |
| 31 | 不好說 | [Codepen](https://codepen.io/zarr12steven/pen/wBwmNMw) |
| 32 | daffytseng | [Codepen](https://codepen.io/Daffy-Tseng/pen/zxOjrNv)|
|33 | janetlai| [Codepen](https://codepen.io/eiddkqxz-the-builder/pen/OPLZpxw?editors=0111)
|34 | JanllyGuo| [Codepen](https://codepen.io/kedugaw/pen/azoGOEY?editors=0010)
|35 | wuyuli_21403| [Codepen](https://codepen.io/Job-Wilhelm/pen/pvzKxaj)
| 36 | hsin yu |   [Codepen](https://codepen.io/tina2793778/pen/LEPrezN?editors=0010) 
| 37| will092317 |   [Codepen](https://codepen.io/xuazoblx-the-flexboxer/pen/XJrYwZp) | 
| 38| Arsian Kuo |   [Codepen](https://codepen.io/Arsian-Kuo/pen/RNbyYEM)
| 39| sh |  [Codepen](https://codepen.io/shiang29/pen/XJrBgQP?editors=0010) | 
| 40| li-wei-min|  [Codepen](https://codepen.io/leewayne/pen/MYgqWdr?editors=1010) | 
| 41 | 0111 |   [Codepen](https://codepen.io/0111mina/pen/dPbaLEq?editors=0011) | 
| 42 | Rylee |   [Codepen](https://codepen.io/ryleezheng/pen/OPLZvRX) | 
| 43 | Cami | [Codepen](https://codepen.io/irisLife/pen/EaxgroP) |
<!-- 
|   |  |   [Codepen](作業網址放這邊) | 
-->
