Mode:
Duration:
1
2
3
4
# assemblyscript/demo/isEven.ts
export function isEven(n: i32): bool {
return (n % 2) == 0;
}Coding works best on desktop or with an external keyboard.
# assemblyscript/demo/isEven.ts
export function isEven(n: i32): bool {
return (n % 2) == 0;
}Coding works best on desktop or with an external keyboard.
Returns true if a number is even.
# assemblyscript/demo/isEven.ts
export function isEven(n: i32): bool {
return (n % 2) == 0;
}AssemblyScript is a TypeScript-like language that compiles to WebAssembly (Wasm). It allows developers familiar with TypeScript/JavaScript to write high-performance WebAssembly modules for web, server, and blockchain applications.
Origin & Creator
AssemblyScript is an open-source project maintained by the AssemblyScript community, started around 2017.
Industrial Note
AssemblyScript is ideal for web developers seeking performance-critical modules, blockchain developers building smart contracts on Wasm chains, and projects that need a bridge between TypeScript and WebAssembly.