Decoding Taylor guitars serial number

This following code is a NON-OFFICIAL solution for decoding Taylor Guitars serial numbers
The official guide for decoding a Taylor Guitar's Serial numbers can be found at:
https://www.taylorguitars.com/support/general/decoding-taylor-guitars-serial
Sample page:
http://arielbarkan.com/demo/TaylorGuitarsSerial/index.html
Github repository:
https://github.com/ArielBarkan/decoding_taylor_guitar_serial
Enjoy the code and feel free to send me any feedback to: arielbarkan@gmail.com


Samples:

non existing serial number length
  • 2103

  • valid 9 digits
  • 980311301

  • valid 10 digits
  • 1107064001

  • valid 10 digits, My guitar :-)
  • 2103129161

  • valid 11 digits
  • 20070311301



  • Result:(also can be seen via the browser console)