Permalink
Cannot retrieve contributors at this time
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?
Gone_with_the_wind/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
67 lines (41 sloc)
1.1 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |