อ็อบเจ็กต์ใน JavaScript สืบทอดคุณสมบัติและเมธอดจากต้นแบบ โดยทั่วไปเราสร้างด้วย Object() ใหม่ ซึ่งรับมาจาก Object.prototype ด้วย ในทำนองเดียวกัน วัตถุที่มี Date() ใหม่จะสืบทอด Date.prototype
ตัวอย่าง
<!DOCTYPE html>
<html>
<body>
<h2>Department Details</h2>
<p id="details"></p>
<script>
function Department(myid, name, section) {
this.id = myid;
this.name = name;
this.section = section;
}
var myDept = new Department("AKD", "Marketing", "North");
document.getElementById("details").innerHTML =
"The name and section of the Department is " + myDept.name + " and "
+ myDept.section+ " respectively.";
</script>
</body>
</html>