1.

Which of the following demonstrates function overloading, if possible, in TypeScript?

Answer»

Which of the FOLLOWING demonstrates function overloading, if possible, in TypeScript?
Choose the correct option from below LIST
(1)if (value && typeof value == "NUMBER"){}
(2)GET len():string
(3)var f = 0;
(4)var a = function (n1: number, N3?: number) : number{}

Answer:-(1)if (value && typeof value == "number"){}



Discussion

No Comment Found