Question: JavaScript 1- Create an object named business (assign the object to a variable with this name) using object literal syntax that includes these properties: -
JavaScript
1- Create an object named business (assign the object to a variable with this name) using object literal syntax that includes these properties:
- businessName : Assign a string literal
- industry : Assign a string literal
- numOfEmployees : Assign an integer literal
- marketPosition : Assign an integer literal between 1 and 10
- dateFounded : Assign the date of May 15, 1995
- annualRev : Assign a reasonable numeric literal
- calculateExpectedGrowthRate : Create a method that takes no parameters and returns a variable named expectedGrowthRate calculated as 30 divided by the marketPosition divided by 100
- calculateExpectedRevenueGrowth Create a method that takes no parameters and returns a variable named expectedRevenueGrowth calculated as annualRev times expectedGrowthRate
- calculateProjectedRevenue Create a method that takes no parameters and returns a variable named projectedRevenueNextFiscalYear calculated as the annualRev plus this object's expected revenue growth
2- Create a function that converts a Date to a mm/dd/yyyy format.
Hint: use the toLocaleString() method to convert revenue values to include commas
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
