[노마드코더] 바닐라JS 공부 1일차(데이터 타입, 변수, booleans, 배열, 객체)
기본적인 데이터 타입 //Basic Data Types 2.1 1 . Number - 정수(Integer) ex) 1,2,3 - 소수(Float) ex) 1.4 2. String : 처음부터 끝까지 모두 글자로 이뤄져있다 ex) "hello" 변수 // Variables 2.2 // const and let 2.3 console.log(1234); // 콘솔에 값을 출력 console.log(5 + 2); // 7 console.log(5 * 2); // 10 console.log(5 / 2); // 2.5 // 들어가는 숫자를 바꾸고 싶음 => 변수 설정! const a = 5; // 바뀌지 않는 값 a = 4; // 오류! const b = 2; let myName = "jui"; // 바뀔 수 있는..
Javascript
2021. 12. 28. 02:19