One of the best ways to learn how digital circuits work is to build them with an inexpensive solderless breadboard.
They typically come in three sizes