Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Stuck on this one. tried several ways and can not get it. Need some help. Thanks CHALLENGE ACTIVITY 5.3.1: Conditionals. Jump to level 1 Write
Stuck on this one. tried several ways and can not get it. Need some help. Thanks
CHALLENGE ACTIVITY 5.3.1: Conditionals. Jump to level 1 Write an if-else statement that if numDifference is less than or equal to stringDifference execute totalDifference - -35. Else execute totalDifference = numDifference. D- OD 1 let totalDifference: 2 let numDifference = -18: Program will be tested with -18, -19 and 420 3 let stringDifference 19103 5 if numDifference - panseInt(stringDifference) 6 totalDiffernce 35; Loco a 8 else totalDiffernce=numDifference Check Try again X Testing value of totalDifference with numDifference - -18 and stringDifference = "-19" Yours and expected differ. See highlights below. Yours Expected -18 X Testing value of totalDifference with numDifference = -19 and stringDifference = "19" Yours and expected differ. See highlights below. Yours Expected X Testing value of totalDifference with numDifference = -20 and stringDifference = -19" Yours and expected differ. See highlights below. Vours 0 Expected Logical operators Feedback? Carinerators parfo ANO DEStep 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