Public
Edited
May 22
1 fork
Insert cell
Insert cell
{
const rows = ['1', '2', '3', '4'];
const cols = ['A', 'B', 'C', 'D'];

const planeSeats = [];

// use a forEach in a forEach to create a list "plane" like: 1A, 1B , 1C, 1D, 2A, 2B, etc

}
Insert cell
Insert cell
{

function schoolTrip( listOfChilds ){
// this function return a list of the children, each Child has 2 properties:
// - name: is the name of the child
// - tired: true
}

const kidsAfterTheTrip = schoolTrip([ "Anna", "Maria", "Anthon" ])
console.log('kidsAfterTheTrip: ', kidsAfterTheTrip)
}
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