Published
Edited
Oct 26, 2021
Insert cell
Insert cell
class Person{
constructor(name,job,hairColor){
this.name = name
this.job = job
this.hairColor = hairColor
}

introduce(){
return `Hi, my name is ${this.name}`
}

greet(friend){
return `Hi ${friend}, how are you doing?`
}
}
Insert cell
Insert cell
Insert cell
person1.greet("Kutlu")
Insert cell
person2.greet("Megan")
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