From a704199dd48a6cae9502f5601414a65ce2e62691 Mon Sep 17 00:00:00 2001 From: Mohammad Karimi Date: Tue, 17 Sep 2024 16:20:43 +0330 Subject: [PATCH] Question-14 clear answer --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b203a060..8ca89ab2 100644 --- a/README.md +++ b/README.md @@ -479,7 +479,10 @@ During the **capturing** phase, the event goes through the ancestor elements dow #### Answer: B -All objects have prototypes, except for the **base object**. The base object is the object created by the user, or an object that is created using the `new` keyword. The base object has access to some methods and properties, such as `.toString`. This is the reason why you can use built-in JavaScript methods! All of such methods are available on the prototype. Although JavaScript can't find it directly on your object, it goes down the prototype chain and finds it there, which makes it accessible for you. +1. Objects created with **Object.create(null)** have no prototype. +2. **Object.prototype** itself has no prototype because it's the root of the chain. + +These two cases are the primary exceptions in JavaScript. However, you can create objects without a prototype by manipulating the prototype chain manually.