Published
Edited
Apr 8, 2021
Insert cell
Insert cell
triangleArea = function(a, b, c){
const s = 0.5 * (a + b + c);
return Math.sqrt(s * (s - a) * (s - b) * (s - c));
}
Insert cell
triangleArea(9, 13, 15)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more