Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gone with the Wind</title>
</head>
<body>
<script>
movie = {
title: "Gone With Wind",
year: 1939,
actressLead:"Vivien Leigh",
actorLead: "Clark Gable",
genre: "Epic",
academyAwards: 8,
profits: {
yearOfRelease: 10,
subsequentToDate: 40
},
leadingRole: function(actor) {
return this[actor];
},
formatInfo: function() {
return (`${this.title} was released in ${this.year}.
It tells the story of the civil war in the US`);
},
quote: "Frankly My Dear, I don't give a damn"
}
console.log(movie);
console.log("Most famous quote from the movie :" + movie.quote);
let role = movie.leadingRole("actorLead");
console.log(role);
console.log("Leading role , " + movie.leadingRole("actressLead"));
roleWithMostVotes = "actorLead";
console.log("Role with most votes is " +
movie.leadingRole(roleWithMostVotes));
console.log("profits the year of release : " + movie.profits.yearOfRelease)
</script>
</body>
</html>