Published
Edited
Sep 15, 2020
1 fork
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
md`A potentially useful random gerund: *${pick(
data.noun.filter(w => w.endsWith('ing'))
)}*`
Insert cell
function pick(list) {
return list[Math.floor(Math.random() * list.length)];
}
Insert cell
data.adverb.filter(w => w[0] === 'b')
Insert cell
createVerb()
Insert cell
function createVerb() {
const verb = pick(data.verb);
const adverb = pick(data.adverb);
const noun = pick(data.noun);
return verb + ' ' + noun + ' ' + adverb;
}
Insert cell
function create() {
const noun = pick(data.noun);
const adjective = pick(data.adjective);
return adjective + ' ' + noun;
}
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