Menu

1 / 2

URL Parameters vs Query Strings in Express.js Explained from Scratch

DEV Community·Shivam Yadav·6 months ago
#20ghVZUi
#how#so#where#important#query
Reading 0:00
15s threshold

hey reader hii

today we are i mean to say u and me are going to talk about URL Parameters vs Query Strings in Express.js

yaaa yaaa its boring but let me make it intresting for u

first lets start from starting

everyone know about Tim Berners-Lee creator of URL , HTML and HTTP

he created this thing mostly to share document easily to any one

but we are going to focus on URL

why did he create URL ?

so the problem was how will we identify the document in this www or internet world

so he end up making a unique string (yes a basic developer thinking)

let decode how the first URL looks like

http://info.cern.ch/hypertext/WWW/TheProject.html

yes yes this is how it look like it is messy but everything is messy at first gradually it will get clean that what history sayy

okay okay let come back to the main topic

so in this URL

http://

this act as a protocol

tell system to use this protocol to communicate with this system

info.cern.ch

this is host

/hypertext/WWW/TheProject.html

this is path

so if u…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.