From 9175eb342f83a9e6999bcb5a6a8748115b739dc4 Mon Sep 17 00:00:00 2001 From: o1Suleyman Date: Sun, 27 Oct 2024 01:21:00 +0400 Subject: [PATCH] Objects and Object Constructors: Rewrite sentence --- .../objects_and_object_constructors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/organizing_your_javascript_code/objects_and_object_constructors.md b/javascript/organizing_your_javascript_code/objects_and_object_constructors.md index 375e9908b1..7c0fd49610 100644 --- a/javascript/organizing_your_javascript_code/objects_and_object_constructors.md +++ b/javascript/organizing_your_javascript_code/objects_and_object_constructors.md @@ -201,7 +201,7 @@ Here, we defined the `.sayHello` function 'on' the `Player.prototype` object. It #### Object.getPrototypeOf() vs. .\_\_proto__ vs. [[Prototype]] -Unlike what we have done so far using `Object.getPrototypeOf()` to access an object's `prototype`, the same thing can also be done using the `.__proto__` property of the object. However, this is a non-standard way of doing so, and [deprecated](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto). Hence, it is not recommended to access an object's `prototype` by using this property. However, the same code can thus be rewritten to become: +What we have done so far using `Object.getPrototypeOf()` to access an object's `prototype` can also be done using the `.__proto__` property of the object. However, this is a non-standard way of doing so, and [deprecated](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto). Hence, it is not recommended to access an object's `prototype` by using this property. However, the same code can thus be rewritten to become: ```javascript // Don't do this!