Meaning of javascript text between two slashes -


on dreamweaver if write on javascript document text between 2 slashes like

<script type="text/javascript">     /text/ </script> 

it becomes green.

what meaning of text? not comment, neither "html text".

thank you

it regular expression litteral.

from w3schools:

var patt=new regexp(pattern,modifiers);  or more simply:  var patt=/pattern/modifiers;  

and mdn:

regexp(pattern [, flags])  /pattern/flags 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -