Published
Edited
Dec 25, 2020
4 stars
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
x * 2 // x is defined below
Insert cell
x = 100 // x value is used above
Insert cell
Insert cell
{
let x = 0;
for (let i = 1; i <= 5; ++i) {
x += i; // adding numbers from 1 - 5
}
return x;
}
Insert cell
Insert cell
({top: 50, right: 50, bottom: 50, left: 50}) //defining object
Insert cell
Insert cell
data = [1,2,3,4,5,6] //defining array
Insert cell
Insert cell
//defining a javascript function
function printProgram(name) {
return `Program: ${name}`;
}
Insert cell
printProgram("Computer Science") // calling function
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
flare = d3.csv("https://gist.githubusercontent.com/mbostock/4063570/raw/11847750012dfe5351ee1eb290d2a254a67051d0/flare.csv")
Insert cell
Insert cell
Insert cell
DOM.download(new Blob([d3.csvFormat(flare)], {type: "text/csv"}), "flare.csv")
Insert cell
md`## Rendering a Triangle in WebGL using REGL framework.`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3 = require("d3")
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