---
title: Local
slug: WebAssembly/Reference/Variables/Local
tags:
  - WebAssembly
  - wasm
  - Reference
  - Variable
---
{{WebAssemblySidebar}}

The **`local`** instruction declares a new local variable.

{{EmbedInteractiveExample("pages/wat/local.html")}}

## Syntax

```wasm
;; declare new variable named $val of type i32
(local $val i32)
```
