ean12ToEan13 ( string ean12 ) : string
Return the ean13 from an ean12. It will add the checksum.
Parameters
ean12
EAN12 code
Example
// Example of use of the ean12ToEan13 function
ean12Code = "123456789012";
ean13Code = ean12ToEan13(ean12Code);
console(ean13Code); // Displays the corresponding EAN13 code in the console