1. WebAssembly
  2. Reference
  3. WebAssembly variable instructions

WebAssembly variable instructions

WebAssembly variable getter and setter instructions.

Global

global.get

Load the value of a global variable onto the stack.

global.set

Set the value of a global variable.

Local

local

Declare a new local variable.

local.get

Load the value of a local variable onto the stack.

local.set

Set the value of a local variable.

local.tee

Set the value of a local variable and keep the value on the stack.

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /