<html>
<head>
<title>Create a Object</title>
</head>
<body>
<script>
function Student(name) {
this.name = name;
}
Student.prototype.getName = function() {
return this.name;
};
var obj = new Student("Hello");
document.write(obj.getName());
</script>
</body>
</html>