challenge-algorithms-v2.0-e.../02-triangleArea/index.js
2022-10-28 12:11:54 -03:00

4 lines
93 B
JavaScript

export function triangleArea(base, height) {
// your code here
return base * height/2
}