Web APIs (navigator, geolocation, history)

What is this code demonstrating about URL manipulation with the History API?
const link = document.createElement('a');
link.href = document.location.href;

// Modify the URL without navigating
link.search = '?page=2';
link.hash = '#section3';

// Update browser history and URL
history.pushState(null, '', link.href);
Next Question (28/40)