Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.bmi < 18.5 )
- {
- this.hasil="Berat badan kurang";
- }
- else if (this.bmi >= 18.5 && this.bmi <=24)
- {
- this.hasil = "Normal";
- }
- else if (this.bmi >= 25 && this.bmi <=29 )
- {
- this.hasil = "Berat badan lebih";
- }
- else
- {
- this.hasil = "obesitas";
- }
- console.log(this.hasil);
- console.log(this.bmi);
- })`
Add Comment
Please, Sign In to add comment