#7: TypeScript Type Inference: Ask in Interview Question with Best Practices | Typescript Tutorial

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 36

  • @fahadraza7152
    @fahadraza7152 Год назад +7

    Q1: let message = "Hello, TypeScript!";
    console.log(message);
    The compiler infers the type string.
    Q2: function calculateArea(len: number, wid: number) {
    return len * wid;
    }
    const result = calculateArea(10, 5);
    console.log(result);
    The compiler infers the type number.

  • @arslan3066
    @arslan3066 Год назад +7

    Very grateful to you i am following from one year i have learned tons of knowledge from your channel
    I have one kind request :
    Please make a such project which includes
    * complete role based authentication with Rest Api
    * Rest Api integration (no one tell us that how to integrate custom backend made api , it is very difficult for those who are working on fronted stack)
    * all crud operations
    * payment gateway
    * dashboard for user & admin
    using Typescript on Next.Js
    I guarantee you sir , this will boom the growth of your channel all over RUclips
    at the end Love from Pakistan 💖

  • @Daily_dose_motivation29
    @Daily_dose_motivation29 Год назад +5

    Mast se samjh aagya bhaiya ❤❤

  • @saeedrajput7159
    @saeedrajput7159 5 месяцев назад +1

    Good Teaching Way ..........
    ❤ 🎉
    Allah Aap Ko Kamyab Kare 🌟

  • @arbu7075
    @arbu7075 Год назад +3

    sir typescript + react zarur krwana

  • @aniketjha5946
    @aniketjha5946 Год назад +1

    love you thapa bhai 🧡🧡

  • @jagdishjena9058
    @jagdishjena9058 11 месяцев назад +1

    Thank you so much sir😎😎😎😎😎😎

  • @arbu7075
    @arbu7075 Год назад +2

    make projects on typescript + react js

  • @saeedrajput7159
    @saeedrajput7159 5 месяцев назад

    Awesome Teacher 👏

  • @atulsinghpatel8526
    @atulsinghpatel8526 Год назад +1

    Nice sir

  • @neerajagrawal709
    @neerajagrawal709 20 дней назад

    Hi Vinod, Thank you for your TypeScript video series, its awesome and very knowledgeable.
    only one thing which I am not liking is motion pictures which you are adding in between your explanation, due to this concentration lost.

  • @satyam_code
    @satyam_code Месяц назад +1

    💙💙

  • @itzallabouttech3616
    @itzallabouttech3616 Год назад +1

    brother please explain unknown and any difference in detail

  • @rka797
    @rka797 Год назад

    Nice bro.....

  • @Kya_Documents_Chahiye
    @Kya_Documents_Chahiye Год назад

    Nice videos ❤

  • @user-rq3co7if2v
    @user-rq3co7if2v Месяц назад

    function calculateArea( length= 2, width=7){
    return length * width;
    }
    console.log(calculateArea())

  • @ayush_code9849
    @ayush_code9849 Год назад

    How did you change your vs code terminal color ? Please reply

  • @ishwarrazz1771
    @ishwarrazz1771 Год назад

    1.Q
    let message = "Hello, TypeScript";
    console.log(message);
    2.Q
    function calculateArea(l , b){
    return l*b
    }
    console.log(calculateArea(6,8));
    Answer
    Hello, TypeScript
    48
    Thank a lot TP SIR

    • @Somio_
      @Somio_ Год назад

      Your assignment is correct .Hey thapa sir,assume his assignment like mine ok.Have a nice day.

  • @abbasjan5395
    @abbasjan5395 Год назад

    please correct playlist, the videos are in reverse order.

  • @user-ic2nh2gr5k
    @user-ic2nh2gr5k Год назад

    please upload a nest js series also

  • @shivamsoni7974
    @shivamsoni7974 Год назад +1

    //THAPA TECHNICAL 7TH VIDEO Homework
    let message="Hello World";
    //message= 10;
    //The ts compiler infers the type string for the varriable message

    const calculateArea=(l:number,w:number)=>{
    return l*w;
    }
    console.log(calculateArea(20,10));

  • @arsalanrehman9117
    @arsalanrehman9117 Год назад

    Sir e-commerce hum next per bamaye

  • @zohaibnaeem3575
    @zohaibnaeem3575 Год назад

    First 🥇

  • @abdulmoiz1768
    @abdulmoiz1768 9 месяцев назад

    let str3:string = 'Hello World';
    console.log(str3);
    const calculateArea = (length:number,width:number) => {
    return width/length ;
    }
    console.log(calculateArea(26,7))

  • @rishiraj2548
    @rishiraj2548 Год назад

    🙏🙏

  • @nayyarabbas4482
    @nayyarabbas4482 Год назад

    let message = "Hello, Typescript!";
    function calculateArea(length: number, width: number) {
    return length * width;
    }
    // let result: string = calculateArea(3, 5); // It'll give error as result can't store numeric value that will be provided by the function
    let result2: number = calculateArea(4, 8); // It'll work fine
    let result3 = calculateArea(4, 8); // It'll also work fine

  • @rajaramsingh1986
    @rajaramsingh1986 Год назад

    //todo
    let message = "Hello, TypeScript!"
    //* The compiler infers the type string for the variable message.
    console.log(message)
    let areaOfRectangle = (l:number,b:number)=>{return l*b}
    console.log(areaOfRectangle(2,3))

  • @RAHILSHAIKH-kd3xt
    @RAHILSHAIKH-kd3xt 5 месяцев назад

    Q1 : solution
    function message(){
    let msg = 'hello rahil Shaikh'
    console.log(typeof(msg))

    }
    message();

  • @HimanshuNanikwal
    @HimanshuNanikwal 4 месяца назад

    // ================Q9==================
    let message2 = "Hello, Typescript"; //Infer type string
    // ================Q10==================
    const calculateArea = (w: number, l: number) => {
    return w * l;
    };
    //infer type number

  • @heartbroken-it8xj
    @heartbroken-it8xj 3 месяца назад

    Janvi kapoor say dil garden garden 😅😅

  • @bipinkumarpal858
    @bipinkumarpal858 10 месяцев назад

    let message = "Hello, TypeScript!";
    console.log(message);
    //type string
    function calculateArea(len:number, wid:number){
    return len * wid;
    }
    let are = calculateArea(2,5);
    console.log(are);
    //type number

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG Год назад

    7:33 let message = "Hello Typescript";
    //The compiler infers type string for the variable message.
    const calculateArea= (l:number,w:number):number => {
    return l*w;
    }
    console.log(calculateArea(5,12));

  • @nikhild79143
    @nikhild79143 5 месяцев назад

    ab mai jata hu raat ko wapis se aaunga

  • @chetangupta2130
    @chetangupta2130 Год назад

    // Q1: Declear a variable message and initialize it with the value "Hello, TypeScript!". infer the type of message using type inference.
    let message = "Hello, TypeScript!" // The compiler infers the type sgring for the variable message
    // Q2: write a function calculateArea that takes the length and width paramenter of type number and returns their product, Infer the return type of the function using type inference
    let calculateArea = (l: number, b: number) => {
    return l*b
    }
    console.log(calculateArea(2, 3))
    // The compiler infers the type number for the function calculateArea

  • @shiekhpalace2401
    @shiekhpalace2401 Год назад

    Thumbnail main pic change kr lo please 😢