Front End Developer (AngularJS) Question:

Download Job Interview Questions and Answers PDF

Explain me when would you use GET and POST requests?

Front End Developer (AngularJS) Interview Question
Front End Developer (AngularJS) Interview Question

Answer:

There are several technical differences between these two types of requests, regarding length limitation, security, caching and a few others. But if someone asks you WHEN would you use it, I'd say one of the most important points that any front-end developer should take into account is that we should only use GET for idempotent requests, it means requests that don't make significant changes in the backend system or database but if you do need to make inserts, updates or deletes in a database, trigger emails or any other major action, POST is recommended.

Download Front End Developer (AngularJS) Interview Questions And Answers PDF

Previous QuestionNext Question
How can you add a method to a class already defined?Explain your workflow when you create a web page?