Constants are values that cannot be changed once defined. They are different from variables because they remain the same throughout the script once it is set.