Difference between revisions of "Classes"

From rbachwiki
Jump to navigation Jump to search
(Created page with "==Classes== <pre> class Person{ constructor(name, yearOfBirth, job){ this.name = name; this.yearOfBirth = yearOfBirth; this.job = job; } } </pre>")
(No difference)

Revision as of 18:31, 3 December 2016

Classes

class Person{
constructor(name, yearOfBirth, job){
this.name = name;
this.yearOfBirth = yearOfBirth;
this.job = job;

}
}