Click here to Skip to main content
15,884,855 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a java-script variable

var result= 0.522,51.22,54.22,09.23 ...etc

I want double quotes to be added for each value and resultant output should be in following way:

C#
result= ["0.522","51.22","54.22","09.23"];


How can i Concatenate and get this output...

What I have tried:

I used default join function.. but didn't achieve the result required ...
Posted
Updated 17-Feb-16 23:09pm

1 solution

Use this.

myarry = result.split(',');

for more, follow below links

LINK 1[^]

LINK 2[^]

Regards,
AARIF SHAIKH
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900