So let's create an object with Object.Create( ) function:
var person = Object.create({
name: "Tech Junkie",
location: "Mars",
hobbie: "Video Games"
});
console.log(person);
Here is how the object looks like:
Notice how it's different than creating an object with new keyword. In this case you are actually using the object's prototype object.
Here is how the object would look with the new keyword
var person = new Object({
name: "Tech Junkie",
location: "Mars",
hobbie: "Video Games"
});
console.log(person);
Your post is too informative. Thank you for sharing with us.
ReplyDeleteAmazon Alexa Spotify not Working Problems
Amazon Alexa Spotify not Working Issues
Amazon Alexa Spotify not Working
Amazon Alexa Spotify not Responding
Alexa Spotify not Responding Issues
Verizon Email Login Problem
Common Verizon Email Login Issue
Common Verizon Mail Login Problem
Common Verizon Mail Login Issue
Verizon Email Login Problem