N
N
Nikola_y2014-11-23 23:31:08
JavaScript
Nikola_y, 2014-11-23 23:31:08

What is the difference between Unity in c# and JS?

What is the difference between Unity in c# and JS?
in terms of syntax or its features?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-11-23
@Nikola_y

Unity in c# from JS

This is where it differs.
Unity took the JS syntax, added static typing to it, and voila:
var i : int;

function doSomething(i : int) : int 
{
    return i * i;
}

And then this thing is beautifully translated into c#
https://unity3d.com/en/learn/tutorials/modules/beg...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question