# HelloWebAssembly **Repository Path**: ylzheng/HelloWebAssembly ## Basic Information - **Project Name**: HelloWebAssembly - **Description**: AssemblyScript 初体验 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-01-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Install AssemblyScript Compiler ```bash git clone https://github.com/AssemblyScript/assemblyscript.git cd assemblyscript npm install npm link ``` run `asc` to check if it's installed correctly. ## Compile ts to wasm ```bash npm run asbuild ``` then you can find `optimized.wasm` under directory `build` ## Test open`index.html` ,open to see the console type ```javascript addfunc(1,2) ``` check the `index.ts` under the directory `assembly` to see the source.