Question: Javascript fill in the Solutions. I have asked these on chegg a couple times and havent gotten the correct answers yet so please only answer
Javascript fill in the Solutions. I have asked these on chegg a couple times and havent gotten the correct answers yet so please only answer if you understand it. Thanks. DONT HARD CODE THE NUMBERS.
Assign weeksPassed with the number of weeks passed since Google was founded and today. Hint: 1000 milliseconds are in a second, 60 seconds are in a minute, etc.
var interestingEvents = { "Long distance telegraph": new Date(1844, 4, 24), "First telephone call": new Date(1876, 2, 10), "Microsoft founded": new Date(1975, 3, 4), "World wide web born": new Date(1989, 2, 1), "Google founded": new Date(1998, 8, 4), "Facebook website launch": new Date(2004, 1, 4) }; var interestingDate = interestingEvents["Google founded"]; // Code also tested using date of First telephone call var weeksPassed = 0;
/* Your solution goes here */
----------------------------------------------------------------------
Define a getter function named totalRevenue that subtracts budget to boxOffice and returns the result.
var movie = { // Code will be tested with a different movie 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" }, budget: 165000000, boxOffice: 675100000, awards: [],
/* Your solution goes here */
};
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
