<script>
var arr=["pink","blue","black","red"]
str=""
temp="|"
for(var i=0;i<arr.length;i++){
str+=arr[i]+temp
}
document.write(str)
</script>
<script>
var arr=["pink","blue","black","red"]
str=""
temp="|"
for(var i=0;i<arr.length;i++){
str+=arr[i]+temp
}
document.write(str)
</script>