A digest is the fixed-size fingerprint a hash function produces from any input; the same input always yields the same digest, but the digest reveals nothing about the input.
A hash function takes bytes of any length and returns a string of fixed length: 256 bits (32 bytes) for SHA-256, 128 bits (16 bytes) for MD5, 160 bits for SHA-1. The mapping is deterministic and one-way. You cannot reconstruct the input from the digest, but you can verify that a given input produces a given digest.
Cryptographic digests are distinct from "checksums" in the loose sense. A CRC32 catches transmission errors; a SHA-256 digest resists deliberate collision attacks. Use CRC for storage media, SHA-256 for security-critical integrity.