We need to fix the script a little.
The message DOM is ready should be printed to the console.
Items cannot be swapped.
Modify the existing script, do not delete or change the if condition.

This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task


<!DOCTYPE html>
    <title>DOM is ready</title>
      const h2 = document.querySelector('h2');
      if (h2) {
        console.log('DOM is ready');
    <h2 style="text-align: center;">DOM is ready</h2>