Can swapping newlines (e.g. by some text editor) break javascript code ?
Share
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.
Both control characters are valid line breaks. In fact you don’t even need line breaks. It’s just to for better readability. Except from situations where you really need those characters like in strings or regular expressions but there you can also use the escape sequences
\nand\r.