Hashbang comments
Widely available since 2022-09-24
The #!
comment at the absolute start of a script or module is treated as a normal comment and is ignored by the JavaScript engine.
Learning resources on MDN
Browser support
- Chrome 74 Released on 2019-04-23
- Chrome Android 74 Released on 2019-04-24
- Edge 79 Released on 2020-01-15
- Firefox 67 Released on 2019-05-21
- Firefox for Android 67 Released on 2019-05-21
- Safari 13.1 Released on 2020-03-24
- Safari on iOS 13.4 Released on 2020-03-24
Specifications
- ECMAScript Language Specification (#sec-hashbang), from TC39 (Ecma International).