Javascript Hashbang Comment Syntax

Javascript Update

Hashbang comments is on its way to be the third type of comment syntax in Javascript, single-line and multi-line comments being the first two. Hashbang comment begins with #!

Hashbang comment can be used to specify the Javascript interpreter that is to be used to execute the code within the module or script file. It is meant mostly for Javascript running on server-side which can have multiple Javascript interpreters.


// Javascript code that will be executed by V8 interpreter
March 14, 2020


Loading Comments