challenge-algorithms-v2.0-A.../02-triangleArea/index.js

5 lines
131 B
JavaScript
Raw Permalink Normal View History

export function triangleArea(base, height) {
// your code here
2022-10-29 01:47:31 +00:00
const triangleArea = (base*height)/2;
return triangleArea;
}