Which of the following code SNIPPETS is safer?Choose the correct OPTION from below list(1)function FN(x: () => any) { x(); }(2)function fn(x: () => void) { x(); }ANSWER:-(2)function fn(x: () => void) { x(); }
Your experience on this site will be improved by allowing cookies. Read Cookie Policy