The function greet(name, times) returns a string where the greeting Hi, <name>! is repeated times times, separated by spaces. Add the parameters with types, set the return type and write the function body.
Do not change the code at the bottom. Each line after @ts-expect-error must stay a type error.
greet('Ann', 2)Returns 'Hi, Ann! Hi, Ann!'
greet('Bob', 1)Returns 'Hi, Bob!'
greet('Ann', 0)Returns ''
greet('Ann', 2)'Hi, Ann! Hi, Ann!'greet('Bob', 1)'Hi, Bob!'Hidden tests run on Submit.