What is the meaning of - before an alert(1) and what is the meaning of // at the end of code?
<script>
var searchTerms = '\\'-alert(1)//';
document.write('<img src="/resources/images/tracker.gif?searchTerms='+encodeURIComponent(searchTerms)+'">');
</script>