358,459 views
2 votes
2 votes
What's the output of the following code?

var x = 10;
x = x + 4;
Console.log (“The value of x is "+x+"!");

O 14!
O The value of x is x!
O The value of x is 14
O The value of x is 14!

User AndyReifman
by
2.6k points

1 Answer

10 votes
10 votes

The answer should be "The value of x is 14!"

A detailed description is shown in the photo below. I wish you success!

What's the output of the following code? var x = 10; x = x + 4; Console.log (“The-example-1
User Mpeerman
by
3.4k points