Calculate the area of any triangle || JAVA SCRIPT

Опубликовано: 12 Май 2026
на канале: CODING LIFE
134
5

Hello to all my viewers once again.
In this video I would be teaching you how to calculate the area of a triangle in java script programming language.
EDITOR USED ---- ATOM
VIDEO RECORDER USED --- BANDICAM
Program code for the video is as follows:


function calculate_TriArea(base,height){
var Tri_Area;
Tri_Area = 1/2 * base * height ;
console.log("Area of the given triangle is " + Tri_Area);
};
calculate_TriArea(14,12);
//You can keep the base and height as per your choice.


Don't forget to watch my other programming informative videos related to python, C++ and java script.

See you in the next video.
Bye......