Digital electronics treats discrete signals, unlike analog electronics that treat continuous signals. Digital logic is used to perform arithmetic operations with electric signals, and constitutes the base for building CPUs.
Digital Logic deals with the design of hardware that processes only 2 values, which are usually denoted as 0 and 1. These 2 values represent a binary number system. For more information, refer https://en.wikipedia.org/wiki/Digital_electronics.