How to build with WebAssembly
Explore how to create Functions using JavaScript and WebAssembly on Azion, including guide on wasmCode implementation for Edge Computing.
Learn about the required process to create a function that uses a WebAssembly originated function.
- Access Azion Console > Functions.
- Click + Function.
- Choose a name for your function.
- Go to the Code tab.
- Copy and paste the following sample code to the code block:
The const wasmCode is the binary representation of the following WAT code:
- Click the Save button.
Now, the function is ready to be instantiated in an application. Check how to instantiate and execute the functions in your application and try it out.
The expected output of the recently created function is similar to: