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

3 lines
71 B
JavaScript

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