myArray.map(d=>d*10)/// ... use map() to achieve the above result
myArray.filter(d=>d<=4)/// ... use filter() to achieve the above result
import{myDataset}from"@datavisufs/js-and-observable-syntax";// ... import the `myDataset` cell from the previous notebook as the 'ages' cell of this notebook
myDataset// ...
Inputs.table(myDataset)// ... you can use Inputs.table()
myDataset.map(d=>d.name)// ... map() can do the trick
myDataset.filter((d)=>d.name==="Gandalf")
myDataset.map((d)=>d.name==="Gandalf")// what would happen if you were to use `map()` instead of `filter()`? Try and find out.
myDataset.filter((d)=>d.age>20000)// ... filter() could help here
myDataset.filter((d)=>d.age<1000)// ...
import{imageToDo}from"@clokman/student-blocks"
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.