Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/webassembly/reference/numeric/const/index.md
6510 views
---
title: Const slug: WebAssembly/Reference/Numeric/Const
---

{{WebAssemblySidebar}}

The const instructions, are used to declare numbers.

{{EmbedInteractiveExample("pages/wat/const.html", "tabbed-standard")}}

Syntax

;; push `5` onto the stack i32.const 5
InstructionBinary opcode
i32.const0x41
i64.const0x42
f32.const0x43
f64.const0x44