Polyfilling is like copying a feature so that one can use it. In polyfilling, one write code to get a similar functionality as provided in other JS version.
Transpilling convert code which has new syntax using transpiler so that it can be used in browsers having older Js versions.