<!DOCTYPE html>
<html>
<head>
<title>Creating an object Demo-aimtocode</title>
<script type="text/javascript">
var book = new Object();//Create the object
book.name ="Coding for world";//Assign properties to the object
book.author ="aimtocode";
</script>
</head>
<body>
<script type="text/javascript">
document.write("Book name is : "+book.name+"<br>");
document.write("Book author is : "+book.author+"<br>");
</script>
</body>
</html>