Public
Edited
Mar 3, 2024
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
myObject.lastName
Insert cell
myObject["age"]
Insert cell
Insert cell
Insert cell
// Function that returns the product of a and b
function multiply(a, b) {
return a * b;
}
Insert cell
// modern way of declaring a function with the arrow notation
multiplyToo = (a, b) => a * b
Insert cell
Insert cell
multiply(3, 4)
Insert cell
multiplyToo(3, 4)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { dataTypes } from "@observablehq/learn-javascript-introduction"
Insert cell
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