The output will be: 1 2. Let's trace through the execution: The variable x starts at 0. In the first iteration, x becomes 1, doesn't equal 3, so 1 is logged. In the second iteration, x becomes 2, doesn't equal 3, so 2 is logged. In the third iteration, x becomes 3, equals 3, so the break statement is executed, which exits the loop immediately without executing the console.log(x) statement. The break statement is useful for exiting a loop early when a certain condition is met, avoiding unnecessary iterations.