This website requires JavaScript.
Explore
Help
Register
Sign In
Marcela_Mathias
/
challenge-algorithms-v2.0-marcela-mathias
Watch
1
Star
0
Fork
0
You've already forked challenge-algorithms-v2.0-marcela-mathias
forked from
M3-Academy/challenge-algorithms-v2.0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
feature/sum
challenge-algorithms-v2.0-m...
/
02-triangleArea
/
index.js
5 lines
102 B
JavaScript
Raw
Permalink
Normal View
History
Unescape
Escape
add triangleArea logic
2022-11-02 19:08:19 +00:00
export
function
triangleArea
(
base
,
height
)
{
const
result
=
(
base
*
height
)
/
2
;
return
result
;
}
Reference in New Issue
Copy Permalink