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

3 lines
75 B
JavaScript
Raw Permalink Normal View History

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