| |
|
Which of the following demonstrates function overloading, if possible, in TypeScript? Question Posted on 12 Jul 2021 Home >> Programming Languages >> TypeScript >> Which of the following demonstrates function overloading, if possible, in TypeScript? |
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"){} | |
|
|
|
|