Created
October 23, 2020 18:15
-
-
Save wedburst/e5c1fdb2bc2155d7fc8e1d0efeb0ca94 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