diff --git a/javascript_objects/Object/copywithin()/example1.html b/javascript_objects/Object/Object.create()/example1.html similarity index 82% rename from javascript_objects/Object/copywithin()/example1.html rename to javascript_objects/Object/Object.create()/example1.html index fe89226..b3b4df4 100644 --- a/javascript_objects/Object/copywithin()/example1.html +++ b/javascript_objects/Object/Object.create()/example1.html @@ -26,9 +26,18 @@
This method is used to copy enumerable and own properties from a source object to a target object
Syntax - Object.assign(target, sources)
The Object.create() method is used to create a new object with the specified prototype object and properties. We can create an object without a prototype by Object.creates (null).
+Syntax- Object.create(prototype[, propertiesObject])
+