---
# System prepended metadata

title: 軟工盾坦三組
tags: [JavaScript 實戰班]

---

---
tags: JavaScript 實戰班
---

# 軟工盾坦三組
## Day 6 任務 (6/15)

#### Carl4133 💯
[do....while陳述式](https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Statements/do...while) 


```js
function sayYouLoveMe() {
  return true;
}

do {
  console.log('說你愛我') 
} while (!(sayYouLoveMe()));
```

> 卡斯伯回覆：作業沒問題唷~

#### Kai 💯
```js
function sayYouLoveMe() {
  return true;
}

// When sayYouLoveMe return true, then log "It's true."
if (sayYouLoveMe()) {
    console.log("It's true.");
}
```

> 卡斯伯回覆：作業沒問題唷~

#### PT 💯
```js
//函式表達式
const loveStatus = function sayYouLoveMe() {
  return true;
}

//依狀態給予不同回應
if (loveStatus()) {
    console.log("小明真的愛阿姨");
}else {
    console.log("小明愛阿姨是假的");
}
```

> 卡斯伯回覆：作業沒問題唷~