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".
Answer:
The statement to this question can be described as follows:
Statement:
if (intRow > = 1 && intRow < = 8)
{
lblCabin.Text= “First Class"; //if block that checks the given range and assign the value.
}
Explanation:
Description of the if block:
- In the above, If statement fist the value is check, that is it is in the range or not.
- To check its value an "intRow" variable is used, that checks the value is greater than equal to 1 and less than equal to 8, in between both condition AND operator, that executes when both conditions are true.
- Inside the if block a label "lblCabin" is used that assigns a value that is "First Class".
Answer:
yes it is
Explanation:
bc you always need a answer
The <em><u>sound energy into electric energy and then into radiant energy.</u></em>
<em>[That's it]:)</em>