how to set the returning type angular code example Example: function with return type in angular greet() : number { return "Hello, " + this.greeting; }