I’m trying to write an article using JavaScript, but the break tag doesn’t work. Am I using the wrong tag? I tried using the n tag, but I can’t tell if I’m using it right.
Any help is very much appreciated, thank you!
Here's my code.
{"url":"photos/headers/ABY-header.png",
"link":"index.html",
"name": "Text here (and then break) continue text here."},
>Solution :
I think \n will work here
const link = {"url":"photos/headers/ABY-header.png",
"link":"index.html",
"name": "Text here \ncontinue text here."} // you can leave space after \n
console.log(link.name)