let name = "ellie";
console.log(name)
// ellie
name = "hello";
console.log(name);
//hello
console.log(age);
//undefined
age=4;
console.log(age);
//4
var age;
코딩 할때 항상 불변성 있는 데이터 타입을 선호 해야하는데 그 이유는 아래와 같다.
1. 보안.
2. thread safety
3. 인간이 할 수 있는 실수를 줄일 수 있다.