GO-V.ORG
As seen in

WebAssembly variable instructions

WebAssembly variable getter and setter instructions.

WebAssembly variable getter and setter instructions.

## Global

- [`global.get`](/docs/WebAssembly/Reference/Variables/global.get)
- : Load the value of a global variable onto the stack.
- [`global.set`](/docs/WebAssembly/Reference/Variables/global.set)
- : Set the value of a global variable.

## Local

- [`local`](/docs/WebAssembly/Reference/Variables/local)
- : Declare a new local variable.
- [`local.get`](/docs/WebAssembly/Reference/Variables/local.get)
- : Load the value of a local variable onto the stack.
- [`local.set`](/docs/WebAssembly/Reference/Variables/local.set)
- : Set the value of a local variable.
- [`local.tee`](/docs/WebAssembly/Reference/Variables/local.tee)
- : Set the value of a local variable and keep the value on the stack.

source: MDN Web Docs mirror · page

Cite this

"WebAssembly variable instructions". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/Variables

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·