Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

start display the movies composer. 1 // code will be tested with a diff…

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

Explanation:

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.

Answer:

console.log(movie.composer);