🇪🇸Spain IsabelSuarez
jlbellido → credited IsabelSuarez → .
🇪🇸Spain IsabelSuarez
`window.scrollTo({ top: 0, behavior: 'smooth' });` is preferred because it adds a smooth and animated scroll, whereas `scrollTo(0, 1200);` simply scrolls instantly without a smooth effect. The former provides a more pleasant user experience.
🇪🇸Spain IsabelSuarez
IsabelSuarez → made their first commit to this issue’s fork.