But how Blazor compile c# to WebAssembly? I want to take c# code that calculates things (Temperature, Weight) and compile it into WebAssembly, Then use that code with Node.js and Javascript app. See Wikipedia example: en.wikipedia.org/wiki/WebAssembly
code in C:
int factorial(int n) {
if (n == 0)
return 1;
else
return n * factorial(n-1);
}
But how Blazor compile c# to WebAssembly? I want to take c# code that calculates things (Temperature, Weight) and compile it into WebAssembly, Then use that code with Node.js and Javascript app. See Wikipedia example: en.wikipedia.org/wiki/WebAssembly
code in C:
Same in WebAssembly: