From 2aac0d168b150e55c37fa977e0559280392101fb Mon Sep 17 00:00:00 2001 From: Caroline Moran Date: Fri, 28 Oct 2022 07:34:26 -0400 Subject: [PATCH] =?UTF-8?q?feat(triangleArea):=20fazendo=20func=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-triangleArea/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..d54f939 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,3 @@ -export function triangleArea(base, height) { - // your code here -} \ No newline at end of file +export function triangleArea(base, height) { + return (base * height) / 2; +}