I know that there are escape sequences like \n \b etc in javascript as like in other programming languages.
alert(\j)=>alerts j …So what is the role of \ here?.Which character is escaped?Is it null character?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Special characters in JavaScript Strings include
',",\,n,r,t,b, andf, as per JavaScript Special Charactersw3schools. Becausejis not a special character and\is (must itself be escaped to be displayed), it would make sense that the\is simply ignored.\plays no role in"\j".