UnityScript vs Javascript

I know that there is a difference between languages ​​such as classes, etc.

What interests me is: if UnityScript is different from Javascript, why does the Unity3D documentation give you the option to choose between C # and JS when you view this? Isn't that a choice between C # and US?

Meanwhile, here at Stack Overflow, people usually work hard to fix the people who call it Javascript. Why is this?

+4
source share
2 answers

Unity uses a custom version of JavaScript, also known as UnityScript, which it is historically and still commonly (but inconsistently) called "JavaScript", including, as you note in your documentation script.

This is incorrect in terms of the meaning of the term "JavaScript" in the programming world as a whole (i.e., outside the Unity community). UnityScript is definitely not JavaScript. These are incompatible languages ​​with fundamental differences. In terms of strict compliance, yes, Unity should use "UnityScript" in its documentation.

Unity, , "JavaScript" JavaScript, Unity. , , "UnityScript" Unity, "JavaScript" , , , - Unity , t , Unity JavaScript, JavaScript.

Unity, , Stack Overflow, "JavaScript" , JavaScript, , "UnityScript" .

, Unity , Unity, , . 5 "JavaScript", "UnityScript" .

+5

Juhana, .

JS , , . , , . , Unity , , Unity JavaScript, Unity.

0

All Articles