var description="some text"+"\n some text 2" +"\n some text 3";
Output:
some text
some text 2 some text 3.
why some text 3 is also showing wrong output with some text 2 instead of breaking line.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Sep 30, 2019, 6:54 PM EDT
akbar ansari111 reputationPosted Oct 6, 2019, 2:26 AM EDT