Created
May 24, 2017 23:12
-
-
Save durvalrafael/38aa6df031d3ece98b878c08c7c7af7f to your computer and use it in GitHub Desktop.
Exemplo de Classe ES2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Teste { | |
| constructor() { | |
| console.log("Constructor inicado"); | |
| this.showMessage(); | |
| } | |
| showMessage(){ | |
| console.log("Método showMessage acionado"); | |
| } | |
| } | |
| var teste = new Teste(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment