mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-11-16 01:07:26 +00:00
Merge pull request #207 from dulcetti/feature/add-dulcetti
Feature/add dulcetti
This commit is contained in:
commit
674e5b88e6
@ -245,6 +245,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU
|
||||
- [![github-alt][github-img]](https://github.com/TheByteStuff )
|
||||
[![twitter-alt][twitter-img]](https://twitter.com/thebytestuff)
|
||||
|
||||
### Bruno Dulcetti
|
||||
- I'm a Front-End developer and work with React, React Native, Angular, AngularJS, ES6, CSS3, HTML5, UX and others technologies.
|
||||
- [![github-alt][github-img]](https://github.com/dulcetti )
|
||||
[![twitter-alt][twitter-img]](https://twitter.com/dulcetti)
|
||||
|
||||
# C
|
||||
|
||||
### Celso Uliana
|
||||
|
18
code/dulcetti.js
Normal file
18
code/dulcetti.js
Normal file
@ -0,0 +1,18 @@
|
||||
class Beer {
|
||||
constructor(name = 'Dulcetti', beerName = 'Karmeliet') {
|
||||
this.name = name;
|
||||
this.beerName = beerName;
|
||||
}
|
||||
|
||||
sayHello() {
|
||||
console.info(`Hello, ${ this.name }. Do you wanna a ${ this.beerName }?`)
|
||||
}
|
||||
}
|
||||
|
||||
// Hello with modified infos
|
||||
const myInfos = new Beer('Bruno', 'Duvel');
|
||||
myInfos.sayHello();
|
||||
|
||||
// Hello with default infos
|
||||
const defaultBeer = new Beer();
|
||||
defaultBeer.sayHello();
|
Loading…
Reference in New Issue
Block a user