--- tags: 온라인 코스준비 --- # 변수 문제 ## 문제1. 아래에 step 들을 참고하여 변수 a와 b의 값을 바꾸시오     ``` let a = 1 let b = 2 console.log(a,b) // 1,2 /* 코드 후에*/ console.log(a,b) // 2,1 ``` ## 문제2.다음 연산자들의 결과값을 예측한후 console.log()를 통해 확인해 보시오 ``` 20 + 30 "20" + "30" "Hello" + " " + 2021 1 + 2 * 3 (1 + 3) ** 2 1 / 0 6 % 2 7.5 % 2 5 == 5 5 === 5 5 == "5" 5 === "5" 5 != 5.0 5 !== 5.0 "true" === true 5 <= 5.0 5 >= 5 true || true true || false true && true true && false !true !false ``` 정답 https://hackmd.io/@oW_dDxdsRoSpl0M64Tfg2g/S1pM3M6_t
×
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