Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Task: Calculate the area of a rectangle
- Write a function named calculateRectangleArea that takes two parameters, width and height, and returns the area of the rectangle. Test your function with different values.
- function calculateRectangleArea(width, height) {
- return width * height;
- }
- let width = 7
- let height = 8;
- console.log(calculateRectangleArea(width, height));
Advertisement
Add Comment
Please, Sign In to add comment