Created
May 22, 2020 21:03
-
-
Save HashRaygoza/14936e67c2a47dccdd25c7c5790465fb to your computer and use it in GitHub Desktop.
Clase separador en forma de módulo
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 Separador { | |
| constructor(tArea) { | |
| this.areaTexto = tArea; | |
| } | |
| separadorMas() { | |
| var texto = this.areaTexto.value; | |
| texto = texto + "++++++++++" + "\n"; | |
| this.areaTexto.value = texto; | |
| } | |
| separadorMenos() { | |
| var texto = this.areaTexto.value; | |
| texto = texto + "----------" + "\n"; | |
| this.areaTexto.value = texto; | |
| } | |
| } | |
| export { Separador }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment