Это видео недоступно.
Сожалеем об этом.
🔴 #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...
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/ 😍
Sir numbers chiye aap ka please sir 🙏🙏🙏🙏🙏
Sir nice videos but ads website create now
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
bro i refress website then status code is chaange and 304 why?
@@gautamsolanki3644 broh my status cade is also 304 in both scenarios
Thanks bro ...you revised all my doubts....❣️❣️......most underrated RUclipsr...
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.
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.
That means status code by default is 200 always , is it right
you can show redirects clearly
@@Mr_Gaurav ayyo thanks for the info
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
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
Sir main jan se padha lekin aapke video se ek dum clear ho ja raha hai concept, Thank You so much sir
The res.status() function set the HTTP status for the response
most underrated channel i gained lot of information
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.
very well explained
GPT ki jai
chat GPT kr ka aya gaya
res.status().send first set the status and then send it to client while res.send() directly send it to the client
This is a great series .. Thanks a lot ❤
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.
Thank you your lectures are really amazing 😊
great content
On using status(), we're checking it's status first than sending some response & on using send() ,we r sending response directly
bahut aachha sikhaate ho bhai
very good explanation😀
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.
please create a video on request and response methods and properties.
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
Sir 🙏 charan sparsh
No change in status code
either we write res.status(404).send("aaa");
or res.send("aaa");
This guy uses more callbacks to his previous videos than any javascript framework *_*
Status(200) says browser that the page is available
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.
thankyou bro . Boom!
Thank you really helpful.😀
Really saved my day
Awesome video. Thanks
What about 404 page ??? you didn't explain it in here
awesome tutorial sir
For some cases If pages doesn't exist (404) then we can show the client a dynamic webpage of the error
You are awesome sir ji
vinod bhai what is cookies and how to write and read cookies in javascript make a video plz
kirane ki dukaan me milta hai cookies. usme pen se bhi likh sakte hai.
@@KingKong-zq4mp 😂😂😂😂
the tune in last portion of video is really good can someone make me know that which tune is this.
Thank you so much ❤️
@@patelujwal5581 tharki😂😂😂
@@tuhsaltak1189 ek aur tharki😂😂😂
tharki thapa
@@user-qs6lp5dm8m haa be 😂😂
sir node js me status hoty han agr correct data hai to 200 status show ho ga otherwise error 500 ho ga
than you brother.
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")
if i use app.post and inside it res.send , its not working response is not received in frontend ??what to do?
Love it bhai
First probably😁😀
Superb 🔥
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
Bro please make circular animated progress bar by pure css and JavaScript🙏🙏🙏🙏🙏🙏
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
In nodejs we showed error in else section..
But how we will do error part here in Expresjs..ples help
@@momozkichutney app.get("*" , (req,res) => {
res.send("Error 404");
})
brilliant
status (200) mean successfully server response to http request
i am getting status 304 ok is it ok or any thing wrong ?
Hi make the playlist of Master Css series easy to find all video of master css 2020
BOOM ! guys
Hello
Nice to c u❤️ hope all good there🙏
how to type that arrow
Bro website per gmap kaise lagaye ek video me bata dijiye
Sir plz tell me the intro song name plz, I have a humble request to you sir plz plz 🙏
Bro Vs code mein font kon se use kiya hai?
wo song ka kya naam hai jo video ke end me bajta hai :)
Error: listen EACCES: permission denied port
See from 8:00
Bhai please Reply:
kia nodejs ka course complete hogaya ha?
npm install -g nodemon for demon install
react have already routing feature then why we need this.
User frontend se request karega to backend me route handle karne ke liye express ka use karte hai
Sir , Is that enough for any begineer and create a full website?
First express is not a function it is a class.
How to make an 404 page like in node js.
Please help me out to make a page for wrong URL.
@@tarunyak. app.get("*",(req,res)=>{
res.status(400).send("Sorry the requested page doesn't exists")
})
Thappa Tu IT engineer ho kay? 😜
Sir can you please make a video on express-generator? It provides a ready-made structure of a server for devs!
Bhai thapa mai bahot confuse hun $ kyu use karte hain?
Plz reply
Template literal string me agar hum variable ko likhna chahte hai to $ ka sign use karte hai
@@programmingwithjavascript3579 thank you so much
1 2 3 and Boom Guys
Sir html part kahan hai... Html k bina maza ni a rha
Bhai aap ne code with Harry se far better hai
i am getting this error while run nodejs });
got solved?
talk is cheap show me the code
💗💗🫂
bhai ap padate kam ho or promossion jyada karte ho
The res.status() function set the HTTP status for the response
Bro website per gmap kaise lagaye ek video me bata dijiye
type get html code for gmap in ur browser & u c this type of code
You can use leaflet/openlayers! @bipinmsit