Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Arithmetic Operators.js
  • Loading branch information
Pavith19 authored Aug 16, 2024
commit c215d4db8ada672c3ab9b11d39b4c3f3918e7ff6
11 changes: 8 additions & 3 deletions Day 1/Arithmetic Operators.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
/**
/*
* Author: Pavith Bambaravanage
* URL: https://github.com/Pavith19
*/

/*
* Calculate the area of a rectangle.
*
* length: The length of the rectangle.
* width: The width of the rectangle.
*
* Return a number denoting the rectangle's area.
**/
*/
function getArea(length, width) {
let area;
// Write your code here
Expand All @@ -26,4 +31,4 @@ function getPerimeter(length, width) {
// Write your code here
perimeter = 2 * (length + width);
return perimeter;
}
}