JSFiddle - React, Tailwind, and code Playground

by sanat gupta

JavaScript

function test(param){
	var output = '';
  [...param].forEach((item)=>{
  	if(index % 2 === 0){
    	output = output + item+'#' 
    }else{
    	output = output +  item;
    }
  })
}
test('DOCOMO')