What is being sliced off from the query?
I'm a bit unclear as to why the initial query is being sliced. If I just type in 90210 as the argument to app.js, what is it that is being sliced off the process.argv array?
const query = process.argv.slice(2).join("").replace('', '');
Steven Parker202,001 Points
The non-argument items are being removed.
The first item (index 0) is a reference to node itself, and the second one is a reference to app.js. By removing those, what remains are the arguments.