---
# System prepended metadata

title: <font class="h2">記憶體接龍</font>
tags: [javascript習題]

---

# <font class="h2">記憶體接龍</font>

###### tags: `javascript習題`
<style>
.h2 {
  background: linear-gradient(135deg,#fff,#537479) ;
  color: #537479;
  display:block;
  padding: 6px 5px;
  border-radius: 4px;
}
.h3 {
  color: #537479;
  display:block;
  padding: 6px 5px;
  border-bottom: 3px solid #537479;
}
.h4 {
  color: #537479;
  font-weight:bold;
  font-size:1.1em;
}
</style>

## 第 1 題
```
// 1. console.log 的值為？
// 2.出現幾個變數、型別、記憶體空間?
let a ;
a = 1;
a = "hello";
console.log(a)
```

![](https://i.imgur.com/oclyjQ1.jpg)
:bulb:undefined也算一個記憶體，意思為有定義但沒有值

<br>
## 第 2 題
```
// 1. console.log 值為？
// 2.出現幾個變數、型別、記憶體空間?
let b = 3 ;
b=5;
let c = 4;
b=8;
c=c+b;
let d = b+c;
console.log(e)
```
![](https://i.imgur.com/ox8fqPm.jpg)

<br>

## 第 3 題
```
// 1. console.log 值為？
// 2. 出現幾個變數、型別、記憶體空間?
let e=0;
e = 5;
e = "hello";
e = true;
e = 3;
e+=1;
console.log(e)
```

![](https://i.imgur.com/IqWHxpT.jpg)

<br>

## 第 4 題

```
// 1. console.log 值為？
// 2. 出現幾個變數、型別、記憶體空間?
let f = 1; 
f++ ;
f=true;
f=10;
let g = 5;
g+=5; 
let h = f+g 
console.log(h)
```
![](https://i.imgur.com/8nQer0x.jpg)
