Thursday, January 26, 2012

Special Characters in JavaScript

JavaScript Code:
<script type="text/javascript">
var jScript="I am working in \"javascript\".";
document.write(jScript);
</script>

Special Characters in JavaScript:

\' single quote
\" double quote
\\ backslash
 \n new line
\r carriage return
 \t tab
\b backspace
 \f form feed

No comments: