operators | SoloLearn: Learn to code for FREE!

0

operators

Guess the value stored in the "rowHeight" variable value of the following code: let height = 40 let isCheck = true let rowHeight = height + (isCheck ? 50 : 20) Can anyone help me?

4/7/2020 6:07:57 PM

Alireza Hatefi

1 Answer

New Answer

+1

Value stored in rowHeight will be 90. This is because isCheck is true so the value after ? will be considered that is 50. rowHeight= 40+50=90