Closed zenorocha closed 4 years ago
Hey @milouse!
Can you update the screenshot to use the new code snippet?
/* * Once upon a time... */ class Vampire { constructor(props) { this.location = props.location; this.birthDate = props.birthDate; this.deathDate = props.deathDate; this.weaknesses = props.weaknesses; } get age() { return this.calcAge(); } calcAge() { return this.deathDate - this.birthDate; } } // ...there was a guy named Vlad const Dracula = new Vampire({ location: 'Transylvania', birthDate: 1428, deathDate: 1476, weaknesses: ['Sunlight', 'Garlic'] });
Feel free to send a pull request to the template repo under the sample folder.
sample
No problem, I do that ASAP next week :)
Thanks @milouse!
Does it please you?
Hey @milouse!
Can you update the screenshot to use the new code snippet?
New Snippet
Why use this?
Want to use another language?
Feel free to send a pull request to the template repo under the
sample
folder.