Can we get the variables in the query string in Node.js just like we get them in $_GET in PHP?
$_GET
I know that in Node.js we can get the URL in the request.
In express.js you can get it pretty easy, all you need to do in your controller function is:
express.js
app.get('/', (req, res, next) => { const {id} = req.query; // rest of your code here... })
And that's all, assuming you are using es6 syntax.
PD. {id} stands for Object destructuring, a new es6 feature.
{id}
Object destructuring