5 lines
118 B
JavaScript
5 lines
118 B
JavaScript
export function triangleArea(base, height) {
|
|
// your code here
|
|
let result = base * height / 2
|
|
return result
|
|
}
|