const myGlobal = new WebAssembly.Global({ value: "i32", mutable: true }, 42);
// 42
console.log(myGlobal.valueOf());WebAssembly.Global.prototype.valueOf() / notebook
WebAssembly.Global.prototype.valueOf()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.