Question: WEB230 JavaScript 1 Assignment 2b - Surface Area In this assignment we will write a JavaScript program to calculate the surface area of the outside
WEB230 JavaScript 1 Assignment 2b - Surface Area In this assignment we will write a JavaScript program to calculate the surface area of the outside of a box Instructions 1. Create variable containing an object that will contain three properties that store the length of each side of the box 2 Prompt the user for 3 side lengths and store them in the properties of the object. 3. Create a function named calcarea that accepts one parameter, the object we created earlier Using the formula below, calculate and return the surface area 4 Use template liberals (AKA back-ticks, template literals are explained in the section on Strings in Chapter 1 to display the three sides of the box and the final surface area with descriptive text Sample Output Side Side Side The mutace area is: 14 Notes Output the required information to the console. The surface area of a box is calculated with the formula below. Where, and represent our 3 side lengths and ca is the calculated surface area. Note that this is the math formula, not JavaScript code are - 2ab + e + 2 Submission Do not use the var keyword. Instead uso let of cont. Do not include any HTML tags Do not use document.write() Save your code to a file called ash. Submit the is file, do not zip
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
