Can anyone help me to explain about this problem var c = 3,d = 4; a = d; b = c; ++d; alert(a*d+c); | Sololearn: Learn to code for FREE!

-2

Can anyone help me to explain about this problem var c = 3,d = 4; a = d; b = c; ++d; alert(a*d+c);

8/28/2021 9:36:47 AM

Bikash Jyoti Bhagawati

1 Answer

New Answer

+2

var c = 3,d = 4; var a = d; // a = 4 now var b = c; ++d; // d = 5 now console.log(a*d+c); // 4*5+3 = 23