The Difference Between 60hz/144hz/240hz Gaming Monitors

What is the difference between 60Hz and 144Hz monitors, and why does refresh rate matter for gaming?