In Python, there are these triple quotation marks ('''), for multiple line strings, which is very useful. Is there any way to do this in javascript?
1 Answer
You can use the template literal. Encase your strings in backticks (`)
For your reference, check: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
2 Comments
MatthewProSkils
thanks, but i can't acept an answer just yet.. sorry it says that you can accept an answer in 4 minutes
Ray Caballero
Thank you for accepting it. Glad I could help. Happy coding!