Questions All 1) Child process 2) Put and patch 3) Options Methos In REST 4) Use of OPTIONS 5) CORS 6) How to connect to DB 7) Connect Node to Postgresql which package ? 8) Node js security 9) How to make things Fast Like api Call ? 10) SQL question ( Sex conversion )
The OPTIONS method can be implemented by adding a route to the API that responds to requests with the OPTIONS method. The response should include information about the allowed methods, supported headers, and other capabilities of the API.
If a request and response are from different ports on the same server, the web browser will see them as coming from different origins, and CORS will be triggered. In this case, the server needs to send the appropriate CORS headers to allow the web browser to access the resources.
Pura theory based questions kon karta hae bhai 5 years experience mae . Ap simple PUT and Patch nahi janti ho nodejs ka acha se para but e sahi nahi e .. Aise technical interview nahi hota e acha skills set banda ka liye nahi hae
Put:- it used to create/update the resources(data).but if u update particular field, the output is particular field only remaining fields will be deleted. Eg:- { "name":" ABC", "age":90old, "place":" M.G.Road", } If used put method to update (age field) . {"age":"90years"} output is :- {"age":"90years"}. patch :-it updates only required fields(resource).eg:- If used patch method to update (age field) . {"age":"90years"} output is :-{ "name":" ABC", "age":"90years", "place":" M.G.Road" }
@@javascripthunt9653 Question being asked by interviewer looked to me a bit tough except that last query part . Not so much Interview related videos on Node js have been put up on RU-vid except this one that looks Gold . I request you to keep posting such videos . I am in Node js too and doing freelance. ✌️✌️