JS Objects - II


<!DOCTYPE html>
<html>
<head>
  <title>JavaScript</title>
  <script>
    var person = new Object();

	person.firstname = 'Ram';
	person.lastname = 'Kumar';
	person.age = 25;

	document.write(person.firstname + "<br>");
	document.write(person.lastname + "<br>");
	document.write(person['age'] + "<br>");
  </script>
</head>
<body>
</body>
</html>