I Will Show You How To Escape Special Characters In Javascript
- Forums
- Javascipt
- I Will Show You How To Escape Special Characters In Javascript
today i will show you how you can escape special characters in javascript. some chracaters like the forward slash or qutoes can be tricky but scaping these characters is easy [804], Last Updated: Sat May 18, 2024
wallpaperama
Mon Sep 22, 2008
0 Comments
3673 Visits
today i was writing a javascript code and it wouldnt work. i was declaring a variable but the value of my variable contained the ' character so i need to scape that single quote character. so anytime you add especial characters to javascript values, its important to cancel them out. this is call escaping in programming..
Backslah ............ \\
Double quote ....... \"
Single quote ........ \'
Backspace ........... \b
Form feed ........... \f
Newline ............. \n
Carriage return ..... \r
Tab ................. \t