Created
October 23, 2020 18:15
-
-
Save wedburst/197a05f9effef4495b2a007b56174ced 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
| // function bmiCalculator (weight, height){ | |
| // var bmi = weight / Math.pow(height , 2); | |
| // return Math.round(bmi); | |
| // } | |
| // var bmi = bmiCalculator(85, 1.8); | |
| // console.log(bmi); | |
| function calcular(peso, altura){ | |
| var bmi = peso / Math.pow(altura , 2); | |
| return Math.round(bmi); | |
| } | |
| var bmi = calcular(85,1.8); | |
| console.log(bmi); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment