How does JavaScript handle cross-browser compatibility?
The question is about JavaScript
Answer:
Feature detection and polyfills, or even transpilers like Babel, are means to handle cross-browser compatibility in JavaScript. Feature detection checks with the browser to see whether or not it supports a certain feature, which one could then use. Polyfills fill in the implementation for features that might not natively support an older browser. Transpilers like Babel convert new JavaScript into backward-compatible versions that could run on older browsers