JavaScript strings can have escape sequences (here is the freeCodeCamp lesson), but in this case the logical thing to do is to control your layout via HTML and CSS.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Learn-form-validation-by-building-a-calorie-counter - Step 44 | 23 | 3536 | December 22, 2023 | |
|
Script.js line break in a variable quotes = [" (no solution)
|
2 | 69 | June 23, 2025 | |
| How to add new line in string? | 16 | 651658 | January 25, 2021 | |
|
Adding code snippets to HTML
|
4 | 4350 | January 16, 2021 | |
| What is the most conventional way to add spacing between the literal string variables? | 4 | 389 | August 26, 2022 |