# <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) ```  :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) ```  <br> ## 第 3 題 ``` // 1. console.log 值為? // 2. 出現幾個變數、型別、記憶體空間? let e=0; e = 5; e = "hello"; e = true; e = 3; e+=1; console.log(e) ```  <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) ``` 
×
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