What is the difference between selenium 3 and 4?

What is the difference between selenium 3 and 4?

Selenium 3 and Selenium 4 are the two versions of Selenium supported by the latest versions of the major browsers. Selenium 4 is a complete rewrite of the original Selenium codebase, which had some issues with browser compatibility and performance. The main difference between the two versions involves how they are implemented.