Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/webassembly/reference/variables/index.md
6516 views
---
title: WebAssembly variable instructions slug: WebAssembly/Reference/Variables
---

{{WebAssemblySidebar}}

WebAssembly variable instructions.

  • Declare local

    • : Declare a new local variable.

  • Get local

    • : Load the value of a local variable onto the stack.

  • Set local

    • : Set the value of a local variable.

  • Tee local

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

  • Declare global

    • : Declare a new global variable.

  • Get global

    • : Load the value of a global variable onto the stack.

  • Set global

    • : Set the value of a global variable.