Meaning of javascript text between two slashes
javascript
Solution
It is the regular expression literal.
From w3schools:
var patt=new RegExp(pattern,modifiers);
or more simply:
var patt=/pattern/modifiers;
And from MDN:
RegExp(pattern [, flags])
/pattern/flags
Problem
On Dreamweaver if I write on a Javascript document some text between two slashes like ``` <script type="text/javascript"> /text/ </script> ``` it becomes green. What it the meaning of this text? This is not a comment, neither "HTML text". Thank you