bhai ye extension ki wajah se kuch nahi samjha ushpe v type Student k andar agar greet method call signature ka return type agar void kardo and student1 k andar greet ka return type string kardo firv koi fark nahi paad raha. this's not justified.
what a awesome content. sir u r my teacher,mentor....i literally respect u very much..ur videos help me a lot..thanks sir for sharing such great content with us.😍✌👌👌🙌🙏🙏
// #1. Function call signature: refers to the declaration of a function, which // includes the function's name, parameters, and return type. // it defines the structure and the type information of a function without including function's body // *** call signture are typically used inside the object type notation to describe the shape of the function // without object types type Student = { name: string; age: number; greeting: (country: string) => string; //method call signature } const introduction = (student1: Student): string => { return `Hello,${student1.name}. Your age is ${student1.age}`; } const student1:Student = { name: "Ram", age: 18, greeting:(country:string):string => `Hello, my name is ${student1.name}, my age is ${student1.age}. I am from ${country}` } // console.log(introduction(student1)); console.log(student1.greeting("Bharat"));
Assalamualaikum @thapatechnical sir your typescript series is so helpful but I want to ask you that why did you use spread operators in line 34 and 35 ??kindly explain it. Thanks
first type and then object and then call this cis callsignature you could also add call signature which is pure in type is only (country:string):string . Now it's up to me what do i need to use waht i choose
Call signature is used to define the type of the method of object it is like greet: (country:string)=>string and the use in object student{greet:(country:string):string=>" jkahahaj "}
Homework🔥🔥 Watch this video and let me know why I used the call signature 👉 ua-cam.com/video/N_fm1B0k5k0/v-deo.html
bhai ye extension ki wajah se kuch nahi samjha ushpe v type Student k andar agar greet method call signature ka return type agar void kardo and student1 k andar greet ka return type string kardo firv koi fark nahi paad raha. this's not justified.
Best typescript video on UA-cam ✨
what a awesome content. sir u r my teacher,mentor....i literally respect u very much..ur videos help me a lot..thanks sir for sharing such great content with us.😍✌👌👌🙌🙏🙏
// #1. Function call signature: refers to the declaration of a function, which
// includes the function's name, parameters, and return type.
// it defines the structure and the type information of a function without including function's body
// *** call signture are typically used inside the object type notation to describe the shape of the function
// without object types
type Student = {
name: string;
age: number;
greeting: (country: string) => string; //method call signature
}
const introduction = (student1: Student): string => {
return `Hello,${student1.name}. Your age is ${student1.age}`;
}
const student1:Student = {
name: "Ram",
age: 18,
greeting:(country:string):string => `Hello, my name is ${student1.name}, my age is ${student1.age}. I am from ${country}`
}
// console.log(introduction(student1));
console.log(student1.greeting("Bharat"));
In simple words call signatures means function type declaration like we declare variable type 👍
thankyou Thapa Sir, apke react ka video dekh kr newsapi fatch krne website bnaya hu
ye ...data kya hai. kahi define to kara hi nahi hai ise
Ha bhai wahi mera bhi
Same problem
It is a spread operator
Assalamualaikum @thapatechnical sir your typescript series is so helpful but I want to ask you that why did you use spread operators in line 34 and 35 ??kindly explain it. Thanks
Hello sir, Thank you for your typescript tutorial, you wrote ...data in console log, can you please explain what is this and why you write?
Good One!.
first type and then object and then call this cis callsignature you could also add call signature which is pure in type is only (country:string):string . Now it's up to me what do i need to use waht i choose
which extension you are using ? its types changes automatic
tell me the name?
Great Tutorial
Sir ...data nahi aa raha aur agar type kare to bol raha hai can not find name data .
same bro
Waiting for angular series❤❤
awsome🥰🥰🥰🥰🥰
Extension name? Plz
NICE VIDEO 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
Web vitals pr video bnao thapa ji😁
ok it definition in object greet: (country):string=>{} and after that use like student.greet(country:"India")
nice video
Call signature is used to define the type of the method of object it is like greet: (country:string)=>string and the use in object student{greet:(country:string):string=>" jkahahaj "}
Good!
Good day greetings
Op❤❤❤
greet(Country:"India")
To much complicated due to the extention
ruk jao bhai thoda dhire dhire Javascript finish karke aauga idhar
is extension ne padne ka sara maja kharab kr diya
Exactly bro, kuch samaj main hi nehi aya!!
What is the name of that extension, I am not getting it
Nahi samaj aaya 😢. ...data kaha se aaya ?
Ab samaj aa gaya 😂 d/5/5/2024
@@nontechbg mujhe bhi smjha bhai, kya h yeh
⒯⒣⒜⒩⒦ ⒴⒪⒰ ⒮⒪ ⒨⒰⒞⒣ ⒮⒤⒭ 😚😚😚😚😚😚