Computer Science, asked by atidumqwajilr9007, 8 months ago

What will be the output of the following code

(script
language="JavaScript")
var x =2
var y= ++x
document.write ('Value of x and y= "+x+","+y)

(/script)

Answers

Answered by krishna254417
0

Answer:

2,3

Explanation:

x value was 2

y value was increase one so value 3

Similar questions