How to build a simple BMI calculator application

Seriously, my eyes are aching, i have not slept at all.

the code I have ran in my local computer but doesnt go through in the exam assessment. Its not different from what most of u have

My code so far. its working properly on subline.
const computeBMI = ({weight, height, country}) => {
countries.forEach(c => {
if (c === country) {
let heightInMeters = height * 0.3048;
this.BMI = weight / Math.pow(heightInMeters, 2);
this.BMI = this.BMI * 0.82;

			}else{
              let heightInMeters = height * 0.3048;
			  this.BMI = weight / Math.pow(heightInMeters, 2);
              
            }
		});

		return Math.round(this.BMI, 2);
	};

God this is crap. I cant think of any other solution here… i have tried all the logic i can think of… how come my code runs good on VS code, and not on their platform

please can why are u using, is stated in the instruction, although i have tried returning only this.BMI but its not working still. some other person pointed to this line as the problem.

its just a variable declared whiten the context of the computeBMI thats why am using the this keyword. you can use a different format anyway

so no one has come up with a solution yet? what if we try to use another formula for the BMI

well its officially closed
still couldn’t complete stage 3

please i need help with this, i’m facing the same challenge and i’m stuck at the second stage… anyone with a viable solution?

I cant get passed stage 1
It gives an error, the #oracle button does not have the specified css style but I dunno why, code looks correct to me
here is my code, pls help, tnx

<button type="button" id="oracle" class="mdc-button">Calculate BMI</button>

css style

#oracle {
        margin-top: 2.5em;
        border: 1px solid;
        width: 100%;
      }

same here man, I have been seeing this message since yesterday bro

What error are you getting

same error as
@kelechichinaka

#oracle{
        margin-top: 2.5em;
        border: 1px solid;
        width: 100%;
      }

this worked for me

take out the type= ā€˜button’ you have in there kelechi

<button id="oracle" class="mdc-button">Calculate BMI</button>

still did not work @priceandsally

try reloading the page and try it again

All my code gets wipped out when i reload, happened thrice now

Same is happening here, one I refresh the page every goes away, then I retype again, its fucking crazy!

and tomorrow is the deadline