JavaScriptã§æ¸ãã¨ããããªãã¸ãã¯ã§ããã®ããªãã Array.prototype.sum = function() { var s = 0; for (var i = 0; i < this.length; i++) { s += Number(this[i]); } return s; }; var jan_cd = function(jan) { var a = jan.split(''); var m = ([a[0], a[2], a[4], a[6], a[8], a[10]].sum() + [a[1], a[3], a[5], a[7], a[9], a[11]].sum() * 3) % 10; return m == 0 ? 0 : 10 - m; }; function asin_to_jan(asin) { var j = '978' + String(a
{{#tags}}- {{label}}
{{/tags}}