Question: What will be the result of the following code?\
<pre>
<code>var x = 5;</code>
<code>if (x > 3)</code>
<code>{ </code>
<code>console.log("Hello, world!");</code>
<code>}</code>
</pre>
Answer:
Since `x` is greater than 3, "Hello, world!" will be logged.
MCQ: What will be the result of the following code?\
<pre>
<code>var x = 5;</code>
<code>if (x > 3)</code>
<code>{ </code>
<code>console.log("Hello, world!");</code>
<code>}</code>
</pre>
Correct Answer:A. "Hello, world!" will be logged
Explanation:
Since `x` is greater than 3, "Hello, world!" will be logged.