I'm trying to put every new word for title on the new line using js. I tried different ways, but they don't work.
dictionary.title += word.value; - here I add attribute title for my dictionary class with word.value value. It comes together like: "HelloI'mJohn" instead of 
"Hello 
I'm 
John".
 How can I do that on the new line using JavaScript code?
 
     
    