Javascript - 자료형
Variable types 메모리의 값이 저장되는 방식에 따라 두가지 type으로 나눌 수 있다. privimitive type object type privimitive type single item ( → 더 이상 나누어질 수 없는 한 가지의 타입을 의미) 값 자체가 메모리에 저장 number, string, boolean, null, undefined, symbol JavaScript는 조건절, 반복문 등 Boolean 값이 필요한 곳에서 형 변환을 이용해 특정 값을 Boolean 값으로 변환함 ** Falsy(거짓 같은 값) : 0, null, undefined, NaN, '' ** Truthy(참 같은 값) : any other value // 1. number const count = 17; ..
Javascript
2021. 8. 28. 12:20