Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take new screenshot #21

Closed
zenorocha opened this issue Apr 18, 2020 · 7 comments
Closed

Take new screenshot #21

zenorocha opened this issue Apr 18, 2020 · 7 comments
Assignees

Comments

@zenorocha
Copy link
Contributor

Hey @JimmyMultani!

Can you update the screenshot to use the new code snippet?

New 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']
}); 

Why use this?

  • It contains examples of string, number, and array
  • It contains examples of single line and multi-line comments
  • It contains examples of inheritance and functions
  • It's simple, funny, and silly

Want to use another language?

Feel free to send a pull request to the template repo under the sample folder.

@JimmyMultani
Copy link
Contributor

Hey @zenorocha, I'll work on it tonight or tomorrow. Thanks!

@JimmyMultani
Copy link
Contributor

Seems like this syntax theme needs to follow the new Dracula Specification still, so I've decided to work on that before I update the screenshot, as I'd have to do it again after it follows the spec.

It can be found here: #22

Thanks!

@zenorocha
Copy link
Contributor Author

Got it, thanks @JimmyMultani!

@zenorocha
Copy link
Contributor Author

Friendly ping ;)

@JimmyMultani
Copy link
Contributor

Sorry about that, works been getting pretty busy. I'll space out some time to work on it tomorrow.

@zenorocha
Copy link
Contributor Author

Totally understand @JimmyMultani, I'm just making sure we don't forget about it :)

@JimmyMultani
Copy link
Contributor

Done. Thanks for waiting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants