Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 306 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 306 Bytes

kennitala check digit

simple JavaScript function that checks if kennitala check digit is correct

ninth digit of Icelandic Social Security Number (kennitala) is a check digit that's how it's calculated: if kennitala is

ABCDEF-GHIJ

I = 11 - ((3xA + 2xB + 7xC + 6xD + 5xE + 4xF + 3xG + 2xH) mod 11)