---
title: WebAssembly numeric comparison
slug: WebAssembly/Reference/Variables
tags:
  - WebAssembly
  - wasm
  - Landing page
  - Reference
  - Variable
---
{{WebAssemblySidebar}}

WebAssembly variable instructions.

- [`Declare local`](/en-US/docs/WebAssembly/Reference/Variables/Local)
  - : Declare a new local variable.

- [`Get local`](/en-US/docs/WebAssembly/Reference/Variables/Local_get)
  - : Load the value of a local variable onto the stack.

- [`Set local`](/en-US/docs/WebAssembly/Reference/Variables/Local_set)
  - : Set the value of a local variable.

- [`Tee local`](/en-US/docs/WebAssembly/Reference/Variables/Local_tee)
  - : Set the value of a local variable and keep the value on the stack.

- [`Declare global`](/en-US/docs/WebAssembly/Reference/Variables/Global)
  - : Declare a new global variable.

- [`Get global`](/en-US/docs/WebAssembly/Reference/Variables/Global_get)
  - : Load the value of a global variable onto the stack.

- [`Set global`](/en-US/docs/WebAssembly/Reference/Variables/Global_set)
  - : Set the value of a global variable.
