Created
January 28, 2019 19:14
-
-
Save devmeireles/def63f423c092dc292f18636c9fb7a68 to your computer and use it in GitHub Desktop.
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 Media{ | |
| constructor(a, b, c, d){ | |
| this.a = a; | |
| this.b = b; | |
| this.c = c; | |
| this.d = d; | |
| } | |
| static Sumar(a, b, c, d){ | |
| return ((a+b+c+d) / 4); | |
| } | |
| } | |
| console.log(Media.Sumar(6, 9, 7, 8)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment