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

3 lines
73 B
JavaScript
Raw Normal View History

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