Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created March 9, 2017 08:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save debugmodedotnet/69b3146b4cb466039c5489a0a7c77110 to your computer and use it in GitHub Desktop.
class Student {
constructor(name, age) {
this.name = name;
this.age = age;
}
getData() {
console.log(this.name + " is " + this.age + " years old !");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment