Exercise 2: Confirming the Array Capture — Possible Solution ==================================================================== app.get('/*splat', async (req, res) => { console.log(req.params.splat); res.send('check the console'); }); VISITING /programming/general-purpose-languages/java ------------------------------ The logged value is: ['programming', 'general-purpose-languages', 'java'] a real JavaScript array with three separate string elements - not a single combined string like 'programming/general-purpose-languages/java'. CONTRAST WITH RAILS' *path ------------------------------ Per the Rails rebuild's own Chapter 3, Rails' *path glob captures the entire matched segment directly as one string - params[:path] would equal 'programming/general-purpose-languages/java' already joined, with no extra step needed. Express 5's own *splat instead requires an explicit .join('/') call to produce the equivalent single string, since it captures an array of the individual segments rather than a pre-joined string. WHY THIS WORKS AS AN ANSWER ------------------------------ It correctly demonstrates req.params.splat is a real array via a direct console.log, and correctly contrasts that array-capture shape against Rails' own single-string *path capture from an earlier chapter in the series.