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

3 lines
73 B
JavaScript

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