Languages
[Edit]
EN

TypeScript - string newline character

0 points
Created by:
Mariam-Barron
811

In this short article, we would like to answer what is the newline character symbol in string in TypeScript.

Quick solution:

Use \n as a newline character.

Notes:

  • TypeScript newline character is platform independed,
  • but, when we work on a text recived from the outside (people create content, application exchange data with endpoints), we need to know what newline character was used or use some techniques do deal with that text - check the article from the See also section below.

See also

Edit
  1. JavaScript - string newline character

     

Alternative titles

  1. TypeScript - string new line character
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join