Hacker News new | ask | show | jobs
by Moru 2291 days ago
The difference is that C needs to be compiled to run on anything, javascript does not.
2 comments

Right, but JavaScript needs a runtime to work at all. And I don't think there was any requirement that the language couldn't be compiled?
It's not like you seriously want to run C without a runtime.
Many people do in fact do this, often for embedded systems. And most other systems happen to ship with a C runtime.
There are C interpreters, commercial and open source since the mid-90's, don't mix languages with implementations.