Fundamental objects
Estimated reading time: 1 minuteFundamental objects
Object
object
is a collections of data . objects represts by{ ... }
or array objects[{},{}]
const user = {
name: 'kamal',
age: 21
}
Array type objects
const users = [
{ name: 'kamal' , age: 21},
{ name: 'jamal', age: 25}
]
methods | methods | methods |
---|---|---|
Object.assign() | Object.create() | Object.defineProperty() |
Object.defineProperties() | Object.entries() | Object.freeze() |
Object.getOwnPropertyDescriptor() | Object.getOwnPropertyDescriptors() | . |
Object.getOwnPropertyNames() | Object.getOwnPropertySymbols() | Object.values() |
Object.getPrototypeOf() | Object.is() | Object.isExtensible() |
Object.isFrozen() | Object.isSealed() | Object.keys() |
Object.preventExtensions() | Object.seal() | Object.setPrototypeOf() |
Function
function functionName(){
............
}