1.

Which of the following code snippets is safer?

Answer»

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(); }



Discussion

No Comment Found