function italicView codeitalic(str: string): stringMake the text italic. Parametersstr: stringView codetext to make italic Return TypestringView code