Skip to content

Instantly share code, notes, and snippets.

View vbkmr's full-sized avatar

vb vbkmr

View GitHub Profile
fetch('factorial.wasm')
//getting WASM Module from response
.then(response => response.arrayBuffer())
//instantiating WASM instance from WASM Module
.then(bytes => WebAssembly.instantiate(bytes))
//using exported factorial fn from WASM Instance
.then(results => {
console.log(results.instance.exports.factorial(12))
})
@vbkmr
vbkmr / fido-notes.md
Last active August 1, 2022 09:07
FIDO