Consider following snippet:
 var dog = { species: "greyhound", }; 
How can you add properties to a dog object? Select all correct options.
There is three ways in JavaScript you can access the dog object: // dog weight objectName["property"] // dog["weight"] objectName[expression] // x = "weight"; dog[x]

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes