Answer:
var movie = {
name: "Avengers Endgame",
director: "Joe Russo",
composer: "Alan Silvestri",
cast: {
"Scarlett Johansson": "Black Widow",
"Chris Evans": "Captain America"
},
roleOf: function (name) {
if (typeof (this.cast[name]) !== 'undefined') {
return this.cast[name];
} else {
return "The actor is not part of this movie";
}
}
};
Explanation:
- Initialize the movie JSON (JavaScript Object Notation) having the name, director, composer and cast properties.
- Define a roleOf: function that has a name parameter.
- Check whether the selected is not equal to undefined and then return that name.
- Otherwise display this message: "The actor is not part of this movie".
The correct answer is A, spreadsheets. Spreadsheet programs are similar to and include Excel, with grids of cells for organizing numerical data. Hope this helps!
The activity or practice of making short, frequent posts to a microblog.