Constants are values that cannot change after they are set. Unlike variables, constants are global and remain unchanged throughout the execution of the script.