In: Computer Science
1. Describe the difference between a static web page and a dynamic one.
2.Briefly explain the benefit of using a templating engine when developing a web app.
3.How does the express.js package make it easier to write a web application?
4.Describe how callbacks and promises help with asynchronous programming.
5.What is the difference between a GET and a POST request? When would you use each?
6.Explain what adding the body-parser plugin to your app allows you to do with express.
1. ans )
Static web pages are written in HTML, css etc, In static web pages when the server receives a request for a web page, and the server send the response suddenly to the user who requested without any additional process carriying out. it remains same ( static ) until someone changes it manually. as here the data is not changing. although the static web pages are simple in nature and easy to create and maintain.
Dynamic Web Pages are written in languages like CGI, AJAX, ASP.NET, etc.
In dynamic web pages, each time the content of the page is changing , so it is different for different user requested. It takes more time to load than the static web page. Dynamic web pages are mainly used to represent the frequently changing data, like weather information site, stoke price, commercial sites ( frequently updating data ) etc.
SOME IMPORTANT DIFFERENCES BETWEEN STATIC VS DYNAMIC WEB PAGES :
STATIC web page |
DYNAMIC web page |
take less time to load the page |
take more time to load |
simple and easy to create |
more complex |
database is not needed |
a database is needed |
written in javascript, html, css |
in asp , asp.net etc |
need less work |
need updation and maintanence |
information is not changed over time |
changed over time |