var getEmail="xyz@gmail.com,abc@gmail.com";
var getEmailSplit=getEmail.split(",");
for(var i=0;i<getEmailSplit.length;i++)
{
gs.print(getEmailSplit[i]);
}
Output:
xyz@gmail.com
abc@gmail.com
How to use for loop in JavaScript.
Expert Asked question July 17, 2023