Skip to content

Instantly share code, notes, and snippets.

@ABIDULLAH786
Created August 3, 2023 12:58
// Longhand
const longString = 'This is a very long string that spans across multiple lines.\n' +
'It requires concatenation and escape characters.';
// Shorthand
const longString = `This is a very long string that spans across
multiple lines without the need for concatenation or escape characters.`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment