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

3 lines
71 B
JavaScript
Raw Permalink Normal View History

export function triangleArea(base, height) {
2022-10-28 20:21:09 +00:00
return base*height/2
}