I was reading an article on Unity JS. The article showed an example of a class in unity js.
class Person{
var name;
var career;
}
//Create objects of type Person
var john = Person();
john.name = "John Smith";
john.career = "doctor";
Debug.Log(john.name + " is a " + john.career);
It looks like Unity JS actually supports the class
keyword. How does it support class
with JavaScript? Are they using dead ES4 spec or a modified ES3 or 5?