This is required.
This is required.
[Exposed=Window] interface Foo { constructor(); attribute DOMString bar; undefined doTheFoo(); };
The Foo interface is nice. Lets you do stuff.
The Foo.constructor() creates a Foo instance.
The bar attribute, returns 🍺.
The doTheFoo() method, returns nothing.
const foo = new Foo(); if (foo.bar === "my bar") { foo.doTheBar(); }