Just like it says on the tin, this runs whatever JS your browser can currently support.
x = 1
++x
JSON.stringify(x)
Modern browsers support:
class
keyword for inheritance without prototype
¶`${string} templates`
for concise string manipulation
async/await
keywords for asynchronous code (inside functions)class Adder {
add(a, b) {
document.write(
`🐍 says <i>${a} plussss ${b} issss ${a + b}</i><br/>`
)
return a + b;
}
}
this.Adder = Adder
let it = new this.Adder();
it.add(1, 1)
sir_not_appearing_in_this_notebook