diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..899b95a 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,10 @@ export function triangleArea(base, height) { // your code here -} \ No newline at end of file + + return base * height / 2 +} + +// Resultados esperados +console.log(triangleArea(3, 5), 7.5) // 7.5 +console.log(triangleArea(5, 5), 12.5) // 12.5 +console.log(triangleArea(2, 5), 5) // 5 \ No newline at end of file