title: escaping backslash printing two backslashes in javascript
body: <p>I am just trying to set a variable string that is going to be a classic asp include, and need to contain backslashes in the string URL, but escaping with an extra "\" is not working.  This line;</p>
  
  <pre><code>function addWidget(el){
      var widgetAdd = "&lt;!--#include virtual='backoffice\\home\\widgets\\" + el + ".asp--&gt;";
  }
  </code></pre>
  
  <p>returns the string of;</p>
  
  <pre><code>"&lt;!--#include virtual='backoffice\\home\\widgets\\example.asp--&gt;"
  </code></pre>
  
  <p>I just want the string to contain the proper url with single backslashes not double.  If I remove the escaping backslash the string is;</p>
  
  <pre><code>"&lt;!--#include virtual='backofficehomewidgetsexample.asp--&gt;"
  </code></pre>
  
  <p>thank you</p>