Mobile app version of vmapp.org
Login or Join
Vandalay111

: Line Feed or Carriage Return - What to use? In javascript, Line Feed and Carriage Return behaves similarly. Which one to use and when? OR Can it be used alternatively? Unicode Characters:

@Vandalay111

Posted in: #Javascript

In javascript, Line Feed and Carriage Return behaves similarly.


Which one to use and when?

OR

Can it be used alternatively?

Unicode Characters:

Line Feed: u000A

Carriage Return: u000D


Code:

<script>
alert("Hello u000A World - <LF>");
alert("Hello u000D World - <CR>");
</script>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme