The Start Function
Learn how to use the start function in WebAssembly.
We'll cover the following...
We'll cover the following...
The start function is a special function that runs after the WebAssembly module is initialized. Let’s take the same example that we used for the globals. We add the following content to globals.wat:
We define the initMutableValue function, which sets mutableValue to 200. After that, we add a start block, which starts with the start keyword followed by the name of the function. ...