in the code below, whats the final value of the variable x? var x = 10; x = x + 7; x = x * 3 var y = 3 x = x…

in the code below, whats the final value of the variable x? var x = 10; x = x + 7; x = x * 3 var y = 3 x = x + y²
Answer
Explanation:
Step1: Initialize x
$x = 10$
Step2: Add 7 to x
$x=x + 7=10 + 7=17$
Step3: Multiply x by 3
$x=x\times3=17\times3 = 51$
Step4: Initialize y
$y = 3$
Step5: Add y squared to x
$x=x + y^{2}=51+3^{2}=51 + 9=60$
Answer:
60