Back to Content

WebAssembly variable instructions

files/en-us/webassembly/reference/variables/index.md

latest866 B
Original Source

WebAssembly variable instructions.

  • 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.
  • global
    • : Declare a new global variable.
  • global.get
    • : Load the value of a global variable onto the stack.
  • global.set
    • : Set the value of a global variable.