Published
Edited
Sep 21, 2018
1 fork
1 star
Insert cell
Insert cell
2 * 3 * 7
Insert cell
Insert cell
{
let x = 0;
for (let i = 1; i <= 100; ++i) {
x += i;
}
return x;
}
Insert cell
Insert cell
x + 2 // x não está disponível aqui!
Insert cell
Insert cell
({top: 20, right: 20, bottom: 30, left: 40})
Insert cell
Insert cell
function cumprimento(name) {
return `Alô, ${name}!`;
}
Insert cell
Insert cell
cumprimento("Adriana")
Insert cell
cumprimento("Roberto")
Insert cell
Insert cell
cor = "vermelho"
Insert cell
Insert cell
letras = { return "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""); }
Insert cell
Insert cell
letras.map(l => l.toLowerCase())
Insert cell
Insert cell
nomeCompleto = `${primeiroNome} ${ultimoNome}`
Insert cell
ultimoNome = "Lovelace"
Insert cell
primeiroNome = "Ada"
Insert cell
Insert cell
randomWalk = {
let y = 16, values = [y];
for (let x = 0; x < width; ++x) values.push(y = y + (Math.random() - 0.5) * 3 + (16 - y) * 0.1);
return values;
}
Insert cell
Insert cell
traço = "azul metálico"
Insert cell
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