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

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

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

## Syntax

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