In a nutshell, what I need is to substitute a comma with a comma with a comma between two single quotes.
The result you give me does not include single quotes so far.
This is the JS code:
var Cadena = "23,54,N21,98,BIT";
var input = Cadena.trim();
input.replace(",", "\', \'");
var output = input.slice(0, -1);
console.log(output);