Skip to content
New issue

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

Question No 1 #284

Closed
abhiupadhyay-Dev opened this issue Jun 24, 2024 · 2 comments
Closed

Question No 1 #284

abhiupadhyay-Dev opened this issue Jun 24, 2024 · 2 comments

Comments

@abhiupadhyay-Dev
Copy link

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 {}

@sudheerj
Copy link
Owner

@abhiupadhyay-Dev We don't have any question as you mentioned

@abhiupadhyay-Dev
Copy link
Author

the first one create object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants