JavaScript Tutorial ✦
LF vs CRLF
Line feed (LF) and carriage return + line feed (CRLF) are line ending conventions.
const text = 'Line 1
Line 2'; // LF line endings (common in Unix)
// In Windows, CRLF would be represented as \r\n
Line feed (LF) and carriage return + line feed (CRLF) are line ending conventions.
const text = 'Line 1
Line 2'; // LF line endings (common in Unix)
// In Windows, CRLF would be represented as \r\n