The Code Behind Barcodes

Barcodes may be one of the most mundane and overlooked aspects of the shopping experience. We may notice them as we pick up an item or find it to scan during checkout. But what becomes of it when we leave the store? It is no longer of use to us.

Forgotten.

This article will focus primarily on the UPC-A standard. Next, we will cover the history and design of barcodes. Finally, we will conclude the paper with a simple JavaScript application that renders a scannable UPC-A barcode.

1.0 Purpose

One goal of this study is to learn and understand the workings of barcodes (specifically UPC-A). The second goal is to create a functional JavaScript program that renders a working UPC-A barcode. The program should also detect the correct digit length (12) and the check digit.