Question: URGENT PLEASE HELP Create an undefined variable. We do not want to assign it a value yet because we want it to have a value
URGENT PLEASE HELP Create an undefined variable. We do not want to assign it a value yet because we want
it to have a value based on if a condition is true, so for now we will just create it and
assign it a value in the next steps.
b Create the ifelse ifelse statement. You will need to use various operators found
i The first test should test if the variable used to store the calculated salary from
the previous assignment is less than If this condition is true, it should
assign the value The salary is too little." to the undefined variable
ii The second test should test if the variable used to store the calculated salary is
greater than and less than and should assign the value The
salary is almost enough. Lets negotiate." to the undefined variable.
iii. The last assignment should take place by default else if neither of the two
previous conditions are met. It will assign the value This is a great salary for
me to the undefined variable.
c Modify the statement that changes the innerHTML of the paragraph below the inputs
from the last assignment to equal the same string as before The salary is plus the
salary plus this new variable that represents if the salary is enough
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
