why in .innerhtml= the < br > works but not inside alert()?
.innerhtml=
alert()
"this is within the scope of vanilla javascript"
` has pretty much nothing to do with JavaScript. You use HTML markup of whatever sort when you're creating HTML content. If you're not creating HTML, then you don't. – Pointy Mar 17 '17 at 13:24