Typescript tutorial for beginners in Hindi #16 Function Type

preview_player
Показать описание
in this typescript tutorial, we learn what is function type and this video is made in the Hindi language.

Function Type
What is function type
Why we need function type
How to define function type
Interview Question
.
Рекомендации по теме
Комментарии
Автор

Yes, function can be undefined if the variables declared inside that function has not been assigned any value then it's return type will be of undefined.

KavitaSingh-uwcn
Автор

Hey anil..I would like to express my gratitude towards you for making such content for free...
I was not able to understand type script earlier...but after watching your videos my concepts are crystal clear

Thank you!!

codewithnode
Автор

Yes function can defined return type undefined

function cal(a:number, b:number):undefined
{
return ;
}

console.log(cal (20, 30));
o/p: undefined

akshaykodam
Автор

Sir you didn't teach how to use type Alias with function?

hamzabadar
Автор

function can be undefined if the variables declared inside that function has not been assigned any value then it's return type will be of undefined

hafiznumanarshad
Автор

Dear Anil Sb,
You are making great videos with very easy examples.
Kindly make videos on react native using function components with expo CLI

Regards,
Owais Khan

sherwanitechnical
Автор

If we don't return anything from function, so it returns undefined.

aurobindobhuyan
Автор

last mein anil be like maja nhi aya!😂😂

tanmayhedau
Автор

#redux_thun && #redux_saga pe vedie banaye sir

thefamilyshorts
Автор

// function add(num1, num2): number {
// return num1.toString() + num2.toString();
// }

// console.warn(add(100, 200), typeof add(100, 200));
here it is returning string type instead of number

sachinkoli-
visit shbcf.ru