diff --git a/Challenge/YunheeJo/4.type(2)/README.md b/Challenge/YunheeJo/4.type(2)/README.md new file mode 100644 index 0000000..46ff4b1 --- /dev/null +++ b/Challenge/YunheeJo/4.type(2)/README.md @@ -0,0 +1,8 @@ +# 문제4 : 변수의 타입2 + +다음 변수 a를 typeof(a)로 넣었을 때 출력될 값과의 연결이 알맞지 않은 것은? + +1. 입력 : a =1, 출력 : number +2. 입력 : a = 2.22, 출력 : boolean +3. 입력 : a = 'p', 출력 : string +4. 입력 : a = [1, 2, 3], 출력 : object diff --git a/Challenge/YunheeJo/4.type(2)/solve.js b/Challenge/YunheeJo/4.type(2)/solve.js new file mode 100644 index 0000000..5832fe3 --- /dev/null +++ b/Challenge/YunheeJo/4.type(2)/solve.js @@ -0,0 +1,12 @@ +// # 문제4 : 변수의 타입2 + +// 다음 변수 a를 typeof(a)로 넣었을 때 출력될 값과의 연결이 알맞지 않은 것은? + +// 1) 입력 : a =1, 출력 : number +// 2) 입력 : a = 2.22, 출력 : boolean +// 3) 입력 : a = 'p', 출력 : string +// 4) 입력 : a = [1, 2, 3], 출력 : object + + +답은 2번입니다! +boolean은 참과 거짓을 의미합니다. a = 2.22 출력값은 number가 나와야합니다. \ No newline at end of file