Public
Edited
Mar 1, 2023
Insert cell
Insert cell
Insert cell
Insert cell
rektangler = {
let liste = [];
for (let a = 1; a <= 8; a++) {
for (let b = a; b <= 8; b++) {
liste.push({ a, b });
}
}
return liste;
}
Insert cell
Insert cell
målinger = rektangler.map((u) => ({
rektangel: `${u.a}x${u.b}`,
omkreds: 2 * (u.a + u.b),
areal: u.a * u.b,
diagonal: Math.sqrt(u.a ** 2 + u.b ** 2)
}))
Insert cell
målinger
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
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