Question: Use simple javascript while following the notes provided in the image. Will rate you well, thanks! Task: In this assignment we will write a JavaScript

Use simple javascript while following the notes provided in the image. Will rate you well, thanks!

Use simple javascript while following the notes provided in the image. Will

Task: In this assignment we will write a JavaScript program to calculate the surface area of the outside of a box. Instructions Create an object variable that will store the length of all 3 sides of the box. Prompt the user for 3 side lengths and store them in the object using properties a, b, and c. Create a function named calcArea that accepts one parameter, the object we created earlier. Using the formula below, calculate and return the surface area. Use template literals (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 For example: Side A=3, Side B=4, Side C=5 The area is: 94 Notes Do not use the var keyword. Instead use let or const. Output the required information to the console. The surface area of a box is calculated with the formula below. Where a, b, and c represent our 3 side lengths and A is the calculated surface area. Note that this is the math formula, not JavaScript code. A = 2ab + 2bc + 2ac

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!