25
edits
Changes
→Classes:
==== Classes: ====
A class is a type of collection that collects ''variables'', ''procedures'' and ''iterators''. We use '''class''' keyword to declare a new class typeand use '''new''' keyword to create its instace.
class myClass {
}
}
var foo = new myClass(0, 1);
foo.print();