A polyfill is a piece of code that allows developers to use newer JavaScript features on older browsers that do not support those features.