How to Convert Array to String in JavaScript

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
const items  = ["abc", "xyz", "mno", "pqr"];
document.getElementById("demo").innerHTML = items .toString();
</script>

</body>
</html>

check the output


Convert Array to String in JavaScriptexpoundsofttechsolution


parents Until function in jQuery