| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/JavaScript_interface/Global/valueOf | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since March 2020.
The valueOf method of the WebAssembly.Global object prototype returns the value contained inside the global variable.
valueOf()
None.
A string indicating the value of the global.
const myGlobal = new WebAssembly.Global({ value: "i32", mutable: true }, 42);
// 42
console.log(myGlobal.valueOf());
| Specification |
|---|
| WebAssembly JavaScript Interface # dom-global-valueof |
global definitionThis page was last modified on Apr 27, 2026 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |