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

3 lines
73 B
JavaScript
Raw Normal View History

export function triangleArea(base, height) {
2022-10-28 11:53:32 +00:00
return (base*height)/2
}