<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
let me = {
name : '은혜',
age : 20,
isHandsome : true,
favFoods : ['피자', '돈까스', '햄버거'],
myFam : {
father : {
name : '아빠',
age : 50,
},
mother : {},
sister : {}
},
sayHello : function(who) {
alert(who + '님, 안녕하세요');
}
}
console.log(me.favFoods[0]);
me.sayHello("철수");
console.log();
document.write();
</script>
</body>
</html>