0

Can someone please explain to me what is a Line Terminator? I have trouble searching it online. It may be slightly irrelevant to the question but I would just like to know.

1

1 Answer 1

2

A line terminator is OS specific. This doesn't have anything to do with JavaScript. On windows a line is terminated by the control character sequence \r\n, On UNIX like systems, it is \n.

Recall that control characters aren't printable characters, so the \r and \n is conceptual, but usually they're put in string literals to represent the control character.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you. That really helps me to understand much better than the ones i see in the internet
@JamesLess consider accepting the answer if you thought it was helpful.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.