WON.dev
chapter03 : 객체 본문
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
var car = {
model : "e-class",
drive : function(){
document.wirte("<h1>" + this.model + "</h1>")
}
};
car.drive();
</script>
</head>
<body>
</body>
</html>
'WEB.JS > 06.객체_JS' 카테고리의 다른 글
chapter06 : 생성자함수 (0) | 2023.05.19 |
---|---|
chapter05 : 객체 (0) | 2023.05.19 |
chapter04 : 객체 (0) | 2023.05.19 |
chapter02 : 객체 (0) | 2023.05.19 |
chapter01 : 객체 (0) | 2023.05.19 |