let myName = "HEROPY"
let email = 'thesecon@gmail.com'
let hello = `Hello ${myName}?!`
console.log(myName); //HEROPY
console.log(email); // thesecon@gmail.com
console.log(hello); // Hello HEROPY?!
let number = 123;
let opacity = 1.57;
console.log(number); // 123
console.log(opacity); // 1.57
let checked = true;
let isShow = false;
console.log(checked); //ture
console.log(isShow); // false
let undef;
let obj = { abc: 123 }
console.log(undef); // undefined
console.log(obj.abc); // 123
console.log(obj.xyz); // undefined
let empty = null;
console.log(empty); //null
변수에 null이라는 값을 넣으므로써 값이 없다는 사실을 명시함.
let user = {
// Key: Value,
name: 'HEROPY',
age: 85,
isValid: true
};
console.log(user.name); //HEROPY
console.log(user.age); // 85
console.log(user.isValid); //true
let fruits = ['Apple', 'Banana', 'Cherry']
console.log(fruits[0]); // 'Apple'
console.log(fruits[1]); // 'Banana'
console.log(fruits[2]); // 'Cherry'