I need to get entire array result as a clear string like: namegenderage, but can't figure out how
I tried:
var arr = ["name","gender","age"];
var string = arr.toString().replace(",","");
console.log(string);
log result should be string like namegenderage without quotes and brackets but I get this result "namegender,age"
.join("")var arr = ["name","gender","age"]; arr.join('');