ECMAScript® 2024 Language Specification

Draft ECMA-262 / February 15, 2024

12.5 Hashbang Comments

Hashbang Comments are location-sensitive and like other types of comments are discarded from the stream of input elements for the syntactic grammar.

Syntax

HashbangComment :: #! SingleLineCommentCharsopt