Assistant Professor in the Information School at the University of Washington // Data science, digital humanities, cultural analytics, contemporary literature, social media
// to execute, click the run button or hit ctrl + enter
{
constbirth_year=1850;
returnbirth_year;
}
// The built-in show() helper function can be used to display values in the preview window on the right
{
constbirth_year2=1900;
returnbirth_year2;
}
functiongetDirection(birth_year,birth_year2){
if(birth_year2-birth_year>0){
return"W";
}else{
return"E";
}
}
getDirection(1900,1850)
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.