QUESTION IMAGE
Question
start
display the movies composer.
1 // code will be tested with a different movie
2 let movie = {
3 title: \the lord of the rings: the fellowship of the ring\,
4 director: \peter jackson\,
5 composer: \howard shore\
6 };
7
8 / your solution goes here /
9
Step1: Access the object property
In JavaScript, to access a property of an object, we use dot notation. Here, the object is movie and the property we want is composer. So we can write console.log(movie.composer); which will print the value of the composer property.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
console.log(movie.composer);