A template tag that creates a script tag with the given content. The content is interpreted as raw JavaScript code and is not escaped. The es6-string-javascript VSCode extension can be used to get syntax highlighting for the JavaScript code.
script
es6-string-javascript
The raw JavaScript code.
Rest
A new Tag instance using the script tag.
javascript` const message = 'Hello, world!'; console.log(message);` Copy
javascript` const message = 'Hello, world!'; console.log(message);`
Generated using TypeDoc
A template tag that creates a
script
tag with the given content. The content is interpreted as raw JavaScript code and is not escaped. Thees6-string-javascript
VSCode extension can be used to get syntax highlighting for the JavaScript code.