Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started