11.4k views
3 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 Jodi
by
4.8k points

1 Answer

1 vote

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 Ruslan Kiskinov
by
4.6k points