Answer:
var movie = {
// Code will be tested with different actors and movies
name: "Interstellar",
director: "Christopher Nolan",
composer: "Hans Zimmer",
cast: {
"Matthew McConaughey": "Cooper",
"Anne Hathaway": "Brand",
"Jessica Chastain": "Murph",
"Matt Damon": "Mann",
"Mackenzie Foy": "Young Murph"
},
roleOf: function (actorName) {
if (!(actorName in this.cast)) {
return "Not in this movie.";
}
return this.cast[actorName];
}
};
Explanation:
Answer:
D
Explanation:
The actions applied to change the look of the word are:
1. It was set to italics. This can be done easily by highlighting the word => press Ctrl + I together on the keyboard.
2. Next is to set to underline. While still highlighted => press Ctrl + U together in the keyboard.
Answer:
find()
Explanation:
When dealing with MongoDB the method that needs to be used in this scenario would be the find() method. This method basically returns all of the records that exist in the collection on which it is called, if no parameter is passed. If you pass a parameter/expression then only the records that match completely the expression will be returned to the user, otherwise nothing is returned. For example, on a database (db) we would call the following
db.find() ... This will return all records
db.find({specific}) ... This will return only the records that match specific.
Internet maybe?
Not 100% sure though