I have the following array, declared as "var strArry":
<h4> ``</h4>,<h4><font color="DarkSalmon">"We</font></h4>,<h4> wo </h4>,<h4><font color="ForestGreen">"'t comment on the</font></h4>,<h4>m . '' </h4>
It gives the following output of 5 strings, separated by commas:
``,"We, wo ,"'t comment on the,m . ''
I then call the array to form a continuous string without the commas by using the following command:
var htmlElementsforSrcLanguageSentence = htmlElementsforSrcLanguageSentence +strArry.join("");
The output it gives below is not what I need:
``
"We
wo
"'t comment on the
m . ''
It is the removing the commas as expected but also placing each element in a new line. This doesn't work as I need to display it as one sentence. What am I missing?