Yesterday, I knew that exist different code levels: when lower, the code is closest from the machine lenguage, and when the code is closest from the machine lenguage, more efficiency it will have. But I don’t found anything clear about JavaScript’s level. I know that C# is at high level (like Java does), but I don’t know if JavaScript is closest from the machine code than C#. I think so, because the syntax of JavaScript is more complex than in C#, but I am not pretty sure…
Can someone tell me which of JavaScript or C# both is more efficient?
Both are .NET languages. They are identical in terms of run time performance.
In terms of coding efficiency the community is divided. C# has the advantage of being better documented and used outside of Unity. UnityScript is less verbose. Most people pick C#, but there are a few that fall on the UnityScript side.
The differences in efficiency are non-existent once compiled. I think I heard somewhere that C# builds faster, but I never saw data confirming it.
Regardless, it’s not the language that’s responsible for most inefficiencies, it’s the programmer. A talented programmer can make a very efficient application with either language, while a careless person could make a mess of either.