Это видео недоступно.
Сожалеем об этом.

🔴 #2: Express JS Routing & our First Challenge in Express JS Tutorial in Hindi in 2020

Поделиться
HTML-код
  • Опубликовано: 30 сен 2020
  • Welcome, Express JS Routing, and our First Challenge in Express JS Tutorial in Hindi in 2020.
    Routing refers to determining how an application responds to a client request to a particular endpoint, which is a URI (path) and a specific HTTP request method (GET, POST, PUT, Delete).
    🔴 Instagram Link: / vinodthapa55
    ************ Must Watch Videos For Web Development ************
    ➡️ Hooks in React JS in Hindi | useState in Hook in React JS: • #30: Hooks in React J...
    ➡️ Array Destructuring in ES6 in JavaScript in Hindi 2020: • ES6 Tutorial #5: Array...
    ➡️ Object Destructuring in ES6 in JavaScript in Hindi: • ES6 Tutorial #7: Objec...
    ➡️ React DevTools & Source Code Link: www.thapatechn...
    ➡️ ReactJS Tutorial in Hindi 2020 Playlist Link: • React JS Tutorial in H...
    ➡️ ReactJS JavaScript Array Map Method in Hindi with Example: • ReactJS JavaScript Arr...
    ➡️ Fat Arrow Function in JavaScript in Hindi 2020: • ES6 Tutorial #8: Fat A...
    ➡️ #23: Array in React JS in Hindi | React JS Project Netflix App #2 in Hindi in 2020
    ➡️ Array in JavaScript in Hindi: • JavaScript Tutorial in...
    ➡️ #22: React JS Project Netflix App Part #1 in Hindi in 2020: • #22: Props in React Js...

    ➡️ Install VS Code for ReactJS LINK: www.thapatechn...
    ➡️ Check Complete Reactjs in One video here 👇 • ReactJS For Beginners ...
    ➡️ HTML in One Video: • Learn HTML in One Vide...
    ➡️ CSS in One video: • Learn Complete CSS In ...
    ➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
    ➡️ JavaScript in One video: • JavaScript in One Vide...
    ➡️ ECMAScript 6 in One Video: • ES5 & ES6 | ECMAScript...
    ➡️ HTML5 in one video: • HTML5 Tutorial in One ...
    ➡️ CSS3 in one video: • Learn Complete CSS3 In...
    ➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
    ➡️ Jquery in One video: • jQuery in One Video in...
    ➡️ JSON in one video: • JSON in One Video in H...
    ➡️ ReactJS in one video: • ReactJS For Beginners ...
    ➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
    ➡️ NodeJS in one video: / ipnwakoibt
    ➡️ MySQL in one video: • Complete SQL & MySQL i...
    ********** CLICK HERE TO WATCH ************
    ➡️ Fetch API in JavaScript: • Fetch API in JavaScrip...
    ➡️ AJAX tutorial for beginners in Hindi: • AJAX tutorial for begi...
    ➡️ Template literals (Template strings) in ES6 in JavaScript in Hindi: • ES6 Tutorial #3: Templ...
    ➡️ Async Await in JavaScript in Hindi: • Async Await in JavaScr...
    ➡️ Promises in JavaScript in Hindi: • Master The Promises in...
    ➡️ Callback Hell in JavaScript: • Callback Hell in JavaS...
    ➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
    ➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
    ➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
    ➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
    ➡️ Source Code Link: www.thapatechn...
    ➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
    ➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
    ➡️Plz show some love to My Siter RUclips Channel and Plz Subscribe Link: / @mayabeautyvlogs878
    **************** MUST WATCH VIDEOS *****************
    ➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
    ➡️ How To Become a Web Developer 2020: • How To Become a Web De...
    ➡️ How JavaScript Works: • How JavaScript Works i...
    ➡️ Follow me on Instagram: / vinodthapa55
    Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
    ➡️ Link: • Make Website Responsiv...
    Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
    Don't Forget to Follow me on all Social Network,
    Website Link: www.thapatechn...
    Instagram Link: / vinodthapa55
    Facebook Link: / vinodthapa55
    Twitter Link: / vb55thapa
    Facebook ThapaTechnical Page Link: www.facebook.c...

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

  • @ThapaTechnical
    @ThapaTechnical  3 года назад +12

    Good Morning Guys ❤ Have an awesome day like you😄 Plz Like the video and Share with your friends too😀 Check out🔴 Complete NodeJS and Express JS Playlist: ruclips.net/p/PLwGdqUZWnOp00IbeN0OtL9dmnasipZ9x8
    Also, check out my Instagram: instagram.com/vinodthapa55/ 😍

    • @akulshukla749
      @akulshukla749 3 года назад

      Sir numbers chiye aap ka please sir 🙏🙏🙏🙏🙏

    • @rabishaikh6225
      @rabishaikh6225 3 года назад

      Sir nice videos but ads website create now

  • @ompawar4350
    @ompawar4350 Год назад +19

    The key difference between the two is that res.status(200).send() allows you to set a specific status code, whereas res.send() uses the default status code 200

    • @gautamsolanki3644
      @gautamsolanki3644 Месяц назад

      bro i refress website then status code is chaange and 304 why?

    • @mattiurrehman6804
      @mattiurrehman6804 Месяц назад

      @@gautamsolanki3644 broh my status cade is also 304 in both scenarios

  • @ritesh1211
    @ritesh1211 3 года назад +16

    Thanks bro ...you revised all my doubts....❣️❣️......most underrated RUclipsr...

  • @nksiet
    @nksiet 3 года назад +54

    we use statusCode to reflect proper status for example if the page is not found and we display 404 page then without using status code it shows status code 200 that is wrong so by using statusCode we reflect proper status.

    • @Mr_Gaurav
      @Mr_Gaurav 3 года назад +11

      correct. but when we use the express module, it automatically handles the status code. e.g - if you request on a page that is not defined in the routes, it will throw 404.

    • @dennyage4791
      @dennyage4791 3 года назад +1

      That means status code by default is 200 always , is it right

    • @HenryPangsatabam
      @HenryPangsatabam 2 года назад

      you can show redirects clearly

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

      @@Mr_Gaurav ayyo thanks for the info

  • @abhay_13
    @abhay_13 2 года назад +14

    On using status(), we are actually checking it's status first than sending some response which is a good practice , and on using send() ,we r sending response directly i.e. what to show on the page ,So in case of an error we can send a message as response on using status () which is the benefit of this

  • @provirghosh4990
    @provirghosh4990 3 года назад +5

    hello sir
    I am live in Bangladesh. Aapki Har ek video Mujhe Achcha lagta hai you are a great teacher. please sir next step mongo videos

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

    Sir main jan se padha lekin aapke video se ek dum clear ho ja raha hai concept, Thank You so much sir

  • @mohitjoshi4453
    @mohitjoshi4453 3 года назад +5

    The res.status() function set the HTTP status for the response

  • @krishankumar8720
    @krishankumar8720 2 года назад

    most underrated channel i gained lot of information

  • @gamingfortextra5622
    @gamingfortextra5622 11 месяцев назад +4

    The two lines of code you provided are often used in web server programming, particularly when building APIs or web applications. Let's break down the differences between the two lines:
    res.send("Hello World!");
    This line of code sends the string "Hello World!" as the response to the client (usually a web browser or another HTTP client). It sets the response body to the provided string and sends it back to the client. This is a simple way to send plain text as a response.
    res.status(200).send("Welcome to about page...");
    This line of code does two things:
    res.status(200): It sets the HTTP status code of the response to 200, which means "OK." This indicates that the request was successful.
    .send("Welcome to about page..."): It sets the response body to "Welcome to about page..." and sends it back to the client. This is similar to the first line but includes explicitly setting the status code.
    In summary, both lines of code send a response back to the client with a message, but the second line also sets the HTTP status code to 200 explicitly. The choice between them depends on your specific use case and whether you want to provide more information about the status of the response. The second approach is often preferred in APIs or web applications where you want to be more explicit about the response status.

  • @gorakhkumargupta491
    @gorakhkumargupta491 3 года назад +2

    res.status().send first set the status and then send it to client while res.send() directly send it to the client

  • @prakritivishwakarma7923
    @prakritivishwakarma7923 3 года назад +2

    This is a great series .. Thanks a lot ❤

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

    I am getting status Code : 304 which means my data has not benn modified since last usage.
    so dont get confused.. if you change something in res.send(" " ) then run , you will get status code 200.

  • @jyotikamat1787
    @jyotikamat1787 2 года назад +1

    Thank you your lectures are really amazing 😊

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

    great content

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

    On using status(), we're checking it's status first than sending some response & on using send() ,we r sending response directly

  • @namuneno.1737
    @namuneno.1737 Год назад

    bahut aachha sikhaate ho bhai

  • @NeerajSingh-ch7wl
    @NeerajSingh-ch7wl 7 месяцев назад

    very good explanation😀

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

    By default the HTTP status code sent in a response from an Express application is 200 (OK). This tells the client that the request was successful and that they can proceed to parse and extract whatever data they require from the response.

  • @anaskhalilkhalilahmed3586
    @anaskhalilkhalilahmed3586 3 года назад +1

    please create a video on request and response methods and properties.

  • @chinmaykhairnar6750
    @chinmaykhairnar6750 2 месяца назад

    10:15 sir , if we use .status(200) then it will only show content that we want to print if hit is succesful else error

  • @AdityaGrover-ly9jf
    @AdityaGrover-ly9jf 5 месяцев назад

    Sir 🙏 charan sparsh

  • @YashKevadiya
    @YashKevadiya 3 года назад +1

    No change in status code
    either we write res.status(404).send("aaa");
    or res.send("aaa");

  • @bharathchippa3773
    @bharathchippa3773 3 года назад

    This guy uses more callbacks to his previous videos than any javascript framework *_*

  • @RekhaGujar83
    @RekhaGujar83 3 года назад +2

    Status(200) says browser that the page is available

  • @vickykumarmodi7
    @vickykumarmodi7 4 дня назад

    1. res.send("welcome to my home page")
    This sends the response to the client with the default status code, which is typically 200 OK if no other status code has been set previously in the response cycle.
    It's a shorthand way to send a response and is often used when you don't need to explicitly set the status code.
    2. res.status(200).send("welcome to my home page")
    This explicitly sets the HTTP status code to 200 OK before sending the response.
    The status(200) method sets the status code, and then the send method sends the response body.
    This is useful when you want to ensure that a specific status code is sent along with the response, even if the status might be set elsewhere in the code.
    When to Use Each:
    Use res.send(...) when you are fine with sending the default status code (usually 200 OK).
    Use res.status(200).send(...) when you want to explicitly specify the status code for clarity or when dealing with conditions that might affect the response status.

  • @jaikrishna3586
    @jaikrishna3586 2 года назад

    thankyou bro . Boom!

  • @kahanijag970
    @kahanijag970 3 года назад

    Thank you really helpful.😀

  • @gauravrobin4326
    @gauravrobin4326 2 года назад

    Really saved my day

  • @rajuraj1257
    @rajuraj1257 3 года назад

    Awesome video. Thanks

  • @alifhasanshahOfficial
    @alifhasanshahOfficial 3 года назад +1

    What about 404 page ??? you didn't explain it in here

  • @04.nehalsingh12
    @04.nehalsingh12 2 года назад

    awesome tutorial sir

  • @bilalkureshi7437
    @bilalkureshi7437 3 года назад

    For some cases If pages doesn't exist (404) then we can show the client a dynamic webpage of the error

  • @ShivamKendre-fc3su
    @ShivamKendre-fc3su 3 года назад

    You are awesome sir ji

  • @adhikari_rajan4115
    @adhikari_rajan4115 3 года назад +2

    vinod bhai what is cookies and how to write and read cookies in javascript make a video plz

    • @KingKong-zq4mp
      @KingKong-zq4mp 3 года назад +1

      kirane ki dukaan me milta hai cookies. usme pen se bhi likh sakte hai.

    • @nishantbharwani852
      @nishantbharwani852 3 года назад

      @@KingKong-zq4mp 😂😂😂😂

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

    the tune in last portion of video is really good can someone make me know that which tune is this.

  • @deepikakapoor9607
    @deepikakapoor9607 3 года назад +3

    Thank you so much ❤️

    • @kimjongun2217
      @kimjongun2217 3 года назад

      @@patelujwal5581 tharki😂😂😂

    • @kimjongun2217
      @kimjongun2217 3 года назад

      @@tuhsaltak1189 ek aur tharki😂😂😂

    • @user-qs6lp5dm8m
      @user-qs6lp5dm8m 3 года назад +2

      tharki thapa

    • @anmol2757
      @anmol2757 3 года назад +2

      @@user-qs6lp5dm8m haa be 😂😂

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

    sir node js me status hoty han agr correct data hai to 200 status show ho ga otherwise error 500 ho ga

  • @datastructure_solved5839
    @datastructure_solved5839 3 года назад

    than you brother.

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

    why i repeated myself too much for creating routes?I mean i want to add simply a logic in a single function that if req.url=="/ then res.send("home page") else if(req.url=="/about") then res.send("about page")

  • @Tutor482
    @Tutor482 3 года назад

    if i use app.post and inside it res.send , its not working response is not received in frontend ??what to do?

  • @harshgupta-ud9di
    @harshgupta-ud9di 3 года назад

    Love it bhai

  • @rahulsunar9077
    @rahulsunar9077 3 года назад

    First probably😁😀

  • @EWorldHub
    @EWorldHub 3 года назад

    Superb 🔥

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

    Vinod bhaiyya , jab url exist nhi ho tab kaise kare
    Jaise aapne node js me bataya tha ki else part me error 404 file ka url daal do
    Waise express me kaise kare
    Please reply

  • @crazygamer-yw7lx
    @crazygamer-yw7lx 3 года назад +1

    Bro please make circular animated progress bar by pure css and JavaScript🙏🙏🙏🙏🙏🙏

  • @aaryan5179
    @aaryan5179 2 года назад

    by using status(200), we are explicitly mentioning that this url is correct. instead of 200, we can use 404 for showing that the page doesn't exists

    • @momozkichutney
      @momozkichutney 2 года назад

      In nodejs we showed error in else section..
      But how we will do error part here in Expresjs..ples help

    • @rushipatel5141
      @rushipatel5141 2 года назад

      @@momozkichutney app.get("*" , (req,res) => {
      res.send("Error 404");
      })

  • @yashdeore473
    @yashdeore473 3 года назад

    brilliant

  • @sarfarazpycoder7870
    @sarfarazpycoder7870 2 года назад

    status (200) mean successfully server response to http request

  • @subhadarshinibehera7996
    @subhadarshinibehera7996 2 года назад

    i am getting status 304 ok is it ok or any thing wrong ?

  • @muhammadsulman6832
    @muhammadsulman6832 3 года назад

    Hi make the playlist of Master Css series easy to find all video of master css 2020

  • @tanveersingh8596
    @tanveersingh8596 3 года назад

    BOOM ! guys

  • @Beautiful_Lifestyle
    @Beautiful_Lifestyle 3 года назад +1

    Hello

    • @ThapaTechnical
      @ThapaTechnical  3 года назад +1

      Nice to c u❤️ hope all good there🙏

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

    how to type that arrow

  • @rahulkumar-yn2kv
    @rahulkumar-yn2kv 3 года назад

    Bro website per gmap kaise lagaye ek video me bata dijiye

  • @_mukumemories
    @_mukumemories 2 года назад

    Sir plz tell me the intro song name plz, I have a humble request to you sir plz plz 🙏

  • @abdulbari2569
    @abdulbari2569 3 года назад

    Bro Vs code mein font kon se use kiya hai?

  • @Vikashkumar-py6gp
    @Vikashkumar-py6gp 2 года назад

    wo song ka kya naam hai jo video ke end me bajta hai :)

  • @krazykalai5057
    @krazykalai5057 3 года назад +1

    Error: listen EACCES: permission denied port

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

    See from 8:00

  • @usmanmughal5916
    @usmanmughal5916 3 года назад +1

    Bhai please Reply:
    kia nodejs ka course complete hogaya ha?

  • @mohdibrahim1995
    @mohdibrahim1995 3 года назад

    npm install -g nodemon for demon install

  • @zafarhussain8273
    @zafarhussain8273 3 года назад

    react have already routing feature then why we need this.

    • @programmingwithjavascript3579
      @programmingwithjavascript3579 2 года назад

      User frontend se request karega to backend me route handle karne ke liye express ka use karte hai

  • @omkarjadhav7032
    @omkarjadhav7032 3 года назад

    Sir , Is that enough for any begineer and create a full website?

  • @codescroller8321
    @codescroller8321 2 года назад

    First express is not a function it is a class.

  • @tarunyak.
    @tarunyak. 3 года назад +1

    How to make an 404 page like in node js.

    • @tarunyak.
      @tarunyak. 3 года назад

      Please help me out to make a page for wrong URL.

    • @ShubhamVerma-hw4uj
      @ShubhamVerma-hw4uj 2 года назад +1

      @@tarunyak. app.get("*",(req,res)=>{
      res.status(400).send("Sorry the requested page doesn't exists")
      })

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

    Thappa Tu IT engineer ho kay? 😜

  • @bunnyfine07
    @bunnyfine07 3 года назад

    Sir can you please make a video on express-generator? It provides a ready-made structure of a server for devs!

  • @BlackZero880
    @BlackZero880 3 года назад

    Bhai thapa mai bahot confuse hun $ kyu use karte hain?
    Plz reply

    • @programmingwithjavascript3579
      @programmingwithjavascript3579 2 года назад

      Template literal string me agar hum variable ko likhna chahte hai to $ ka sign use karte hai

    • @BlackZero880
      @BlackZero880 2 года назад

      @@programmingwithjavascript3579 thank you so much

  • @nacool0208
    @nacool0208 3 года назад

    1 2 3 and Boom Guys

  • @stiphenrobert4469
    @stiphenrobert4469 3 года назад

    Sir html part kahan hai... Html k bina maza ni a rha

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

    Bhai aap ne code with Harry se far better hai

  • @krazykalai5057
    @krazykalai5057 3 года назад

    i am getting this error while run nodejs });

  • @webStream258
    @webStream258 2 года назад +1

    talk is cheap show me the code

  • @AdityaGrover-ly9jf
    @AdityaGrover-ly9jf 5 месяцев назад

    💗💗🫂

  • @avmalik3705
    @avmalik3705 2 года назад

    bhai ap padate kam ho or promossion jyada karte ho

  • @muhammadazeem5549
    @muhammadazeem5549 3 года назад +2

    The res.status() function set the HTTP status for the response

  • @rahulkumar-yn2kv
    @rahulkumar-yn2kv 3 года назад

    Bro website per gmap kaise lagaye ek video me bata dijiye

    • @kewalkandpal
      @kewalkandpal 3 года назад

      type get html code for gmap in ur browser & u c this type of code

    • @bipinmsit7380
      @bipinmsit7380 3 года назад

      You can use leaflet/openlayers! @bipinmsit