Check out example codes for "showing danger message in red in terminal bash". It will help you in understanding the concepts better.

Code Example 1

#    .---------- constant part!
#    vvvv vvvv-- the code from above
RED='\033[0;31m'
NC='\033[0m' # No Color
printf "I ${RED}love${NC} Stack Overflow\n"

Learn ReactJs, React Native from akashmittal.com