We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let vehicle = { wheels: '4', fuelType: 'Gasoline', color: 'Green' }
let carProps = { type: { value: 'Volkswagen', enumerable:true }, model: { value: 'Golf', enumerable:true } }
var car = Object.create(vehicle, carProps); console.log(car);
Make this property enumerable means visible else it will be empty {}
The text was updated successfully, but these errors were encountered:
@abhiupadhyay-Dev We don't have any question as you mentioned
Sorry, something went wrong.
the first one create object
No branches or pull requests
let vehicle = {
wheels: '4',
fuelType: 'Gasoline',
color: 'Green'
}
let carProps = {
type: {
value: 'Volkswagen',
enumerable:true
},
model: {
value: 'Golf',
enumerable:true
}
}
var car = Object.create(vehicle, carProps);
console.log(car);
Make this property enumerable means visible else it will be empty {}
The text was updated successfully, but these errors were encountered: