# Converting an Array to a String in JavaScript

**URL:** <https://forum.devtalk.com/t/converting-an-array-to-a-string-in-javascript/125502>\
**Category:** General Questions/Help\
**Tags:** js\
**Created:** [22 September 2023 10:43 UTC](https://forum.devtalk.com/t/converting-an-array-to-a-string-in-javascript/125502 "2023-09-22T10:43:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![PeterKeyse](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/p/6f9a4e/32.png) [@PeterKeyse](https://forum.devtalk.com/u/PeterKeyse)\
**Post date:** [24 September 2023 16:54 UTC](https://forum.devtalk.com/t/converting-an-array-to-a-string-in-javascript/125502/2 "2023-09-24T16:54:04Z")

</div>

Here’s an example of how I string together the keywords from an JSon array:  
Keywords = Data.keywords\_and\_keyphrases  
KeywordString = 'Keywords: ’  
for (let i = 0; i \< Keywords.length; i++) {  
Keyword = Keywords[i]  
KeywordString = KeywordString + Keyword + ', ’  
}  
As you can see they’re separated by a comma + ‘, ’ which could equally be +’: ’

---

_[View the full topic](https://forum.devtalk.com/t/converting-an-array-to-a-string-in-javascript/125502)._
