Object methods in JavaScript.!

Obektning statik metodlari.!

Object.assign()
Object.create()
Object.defineProperties()
Object.defineProperty()
Object.entries()
Object.freeze()
Object.fromEntries()
Object.getOwnPropertyDesciptor()
Object.getOwnPropertyDesciptors()
Object.getOwnPropertyNames()
Object.getOwnProperty.Symbols()
Object.getPrototypeOf()
Object.groupBy()
Object.hasOwn()
Object.is()
Object.isExtensible()
Object.isFrozen()
Object.isSealed()
Object.keys()
Object.preventExtensions()
Object.seal()
Object.setPrototypeOf()
Object.values()

Object.assign()


const person1={ fName:"John", lName:"Smith", age:33, salary:"3000$",
};
const person2={ fName:"Oliver", lName:"Leo", age:25, salary:"4000$", hobby:"watching movies",
};
const person3={ fName:"Benjomin", lName:"Mason", age:36, salary:"5000$", hobbies:['travel','swim','read book']
}; let result=Object.assign(person1,person2,person3);
console.log(result); // natija.!
/*
age:36
fName:"Benjomin"
hobbies:['travel', 'swim', 'read book']
hobby:"watching movies"
lName:"Mason"
salary:"5000$"
*/
Enter fullscreen mode Exit fullscreen mode

Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
How to install docker and docker compose on ubuntu 20. Subscribe to the waitlist for the dc location. Clustered hosting platform get a host.