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

{{WebAssemblySidebar}}

end is used to end a block, loop, if, or else. In the other examples we used the s-expression syntax which doesn't require the end, so you won't find it in the other examples here. However, it's still useful to know about since this is what the browsers display in devtools.

{{EmbedInteractiveExample("pages/wat/end.html", "tabbed-taller")}}

Syntax

i32.const 0 if ;; do something end
InstructionBinary opcode
end0x0b