Hello, how convert my string let = "a,b,c"; to "a","b","c"
Example:
let lang = "a,b,c";
// Convert ['a', 'b', 'c'];
Hello, how convert my string let = "a,b,c"; to "a","b","c"
Example:
let lang = "a,b,c";
// Convert ['a', 'b', 'c'];
You can split
the string using the comma (,
) string:
let lang = "a,b,c";
console.log(lang.split(','));