+ 1

What is the output of this code?

var a = 12; var k = 7; var y = a + 23; var d = k + b; d = 20; document . write (d); document . write(y);

16th Feb 2021, 9:29 AM
°∆_/A.H.B.Y\_∆°
°∆_/A.H.B.Y\_∆° - avatar
2 odpowiedzi
+ 1
It's quite easy: Just resolve first the operations like: K + b (==7+12) & a + 23 (==12 +23) Then it's a document.write, that output the result of the above operations. Hope it helps :)
16th Feb 2021, 9:31 AM
Matthew
Matthew - avatar
0
ReferenceError: b is not defined.
16th Feb 2021, 1:48 PM
Ipang