7.2.4 area of triangle
what am i doing wrong??? please help!!!

Answer:
hope it helps
Explanation:
function start(){
triangleArea(5,4);
}
function triangleArea(BASE, HEIGHT){
var result=1/2 * BASE * HEIGHT
println(result);
}
Following are the correct Javascript program to calculate the area of the triangle:
function start()//defining the method start
{
triangleArea(5,4);//calling the method triangleArea that takes two integer values inside the parameter
}
function triangleArea(BASE, HEIGHT)//defining a method triangleArea that takes two integer variables inside the parameters
{
var result=1/2 * BASE * HEIGHT//defining a variable result that calculates the area of a triangle by using a formula and storing its value
print(result);//using print method that prints result in variable value
}
start();//calling the method start
Output:
please find the attached file.
Program Explanation:
Errors in the given code:
On the 5 lines, there is an error, and the start method is not called that's why it's not run.
Find out more about JavaScript here:
brainly.com/question/16698901