Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
# wat/demo/max.wat
(module
(func $max (param $a i32) (param $b i32) (result i32)
local.get $a
local.get $b
i32.gt_s
if (result i32)
then local.get $a
else local.get $b
end)
(export "max" (func $max))
)Coding works best on desktop or with an external keyboard.