function greenView codegreen(str: string): stringSet text color to green. Parametersstr: stringView codetext to make green Return TypestringView code