Advanced
JavaScript
Q99 / 100
What is the difference between WebAssembly.Memory and regular JavaScript ArrayBuffer?
Correct! Well done.
Incorrect.
The correct answer is B) WebAssembly.Memory is a resizable, page-aligned memory object (64KB pages) specifically designed for WASM modules, shareable as SharedArrayBuffer
B
Correct Answer
WebAssembly.Memory is a resizable, page-aligned memory object (64KB pages) specifically designed for WASM modules, shareable as SharedArrayBuffer
Explanation
WebAssembly.Memory grows in 64KB pages and exposes its underlying ArrayBuffer. JavaScript can read/write it directly. Can be declared as shared for multi-threaded WASM modules.
Progress
99/100