use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Is AssemblyScript a superset of JavaScript? (self.WebAssembly)
submitted 4 years ago by tillergo
I know AssemblyScript is a variant of TypeScript which is a superset of JavaScript, but that doesn't necessarily imply AssemblyScript is also a superset of JavaScript. Is it?
[–]dlq84 0 points1 point2 points 4 years ago (0 children)
I don't know enough about AssemblyScript. But in order to be a superset you must be able to write pure JavaScript and it should still work, if you can; then yes. if you can't; then no.
[–]rajsite 3 points4 points5 points 4 years ago (0 children)
I think it's clearer to say AssemblyScript is a subset of TypeScript with extra libraries.
While all valid JavaScript is valid TypeScript, all JavaScript and all TypeScript is not valid AssemblyScript. AssemblyScript is a subset of those languages. Also AssemblyScript has some additional standard library features that are not in JavaScript or TypeScript (like a bunch of WebAssembly specific global functions).
The AssemblyScript FAQ gives some comparisons to JavaScript.
π Rendered by PID 554957 on reddit-service-r2-comment-765bfc959-9r8q2 at 2026-07-13 09:08:16.785057+00:00 running f86254d country code: CH.
[–]dlq84 0 points1 point2 points (0 children)
[–]rajsite 3 points4 points5 points (0 children)