A polyfill is a piece of code (usually JavaScript) that provides the technology that you, as a developer, expect the browser to provide natively. Polyfilling is essentially creating a fallback, filled in, version of a method that you expect to exist in all the browsers where your code runs. This allows you to use modern coding techniques without excluding users on older browsers who don’t have that function or feature natively available.