HackerRank Problem Link
JS Solution
function getArea(length, width) { let area; area = length * width; return area; } function getPerimeter(length, width) { let perimeter; perimeter = 2 * (length + width); return perimeter; }
Last updated 3 years ago
Was this helpful?