Answers for "split text to array buy comma in javascript"

2

separatly fetch a strings with commas inn js

$(function(){
    var s = "jpeg, jpg, gif, png";
    var match = s.split(', ')
    console.log(match)
    for (var a in match)
    {
        var variable = match[a]
        console.log(variable)
    }
})
Posted by: Guest on May-29-2020

Code answers related to "split text to array buy comma in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language