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

4 lines
105 B
JavaScript
Raw Normal View History

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