x
1
2
<html>
3
<body>
4
5
<h2>JavaScript Objects</h2>
6
7
8
<script>
9
/* Create an object: */
10
var plane = {type:"MS", model:2001, color:"white"};
11
12
/* Display some data from the object:*/
13
document.write("The Plane Color is " + plane.color);
14
15
/* Display Model from the object:*/
16
document.write("The Plane model is " + plane.model);
17
</script>
18
19
</body>
20
</html>