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

{{WebAssemblySidebar}}

The drop instruction, pops a value from the stack, and discards it.

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

Syntax

;; push multiple values onto the stack i32.const 1 i32.const 2 i32.const 3 ;; drop the top item from the stack (`3`) drop ;; the top item on the stack will now be `2`
InstructionBinary opcode
drop0x1a