Execute the code synchronously

Adjust the code snippet so that the console.log statement logs the value 2.
JavaScript
Console