Published
Edited
Sep 24, 2020
9 stars
Insert cell
Insert cell
Insert cell
arrowFn = () => this;
Insert cell
keywordFn = function () { return this; }
Insert cell
Insert cell
this;
Insert cell
Insert cell
[this === arrowFn(), this === keywordFn()];
Insert cell
Insert cell
anObject = ({
arrow: arrowFn,
keyword: keywordFn,
});
Insert cell
Insert cell
[this === anObject.arrow(), this === anObject.keyword()];
Insert cell
Insert cell
anObject.keyword();
Insert cell
Insert cell
me = ({
name: 'Brendan',
sayHello: function() { return `Hi, I'm ${this.name}`; },
});
Insert cell
Insert cell
me.sayHello();
Insert cell
Insert cell
sayHelloFunction = me.sayHello;
Insert cell
Insert cell
sayHelloFunction();
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