Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

area of a triangle javascript

var a1 = 10
var a2 = 2

console.log((a1 * a2)/2)

// Area would be 10 in this case, formula for triangle area is (base * height) / 2
 
PREVIOUS NEXT
Tagged: #area #triangle #javascript
ADD COMMENT
Topic
Name
6+6 =