Not sure if I'm being tricky or dumb got slightly different answer for question

In the express part of the course. I went and got the answer for the question I was on after I solved it.

Create a POST /soups route. It should add a new soup name to the soups array from the name property of the req.query object. It should also set a status code for ‘Creat

Their code looks a bit different from mine. Here is the original code.

const express = require('express');
const app = express();

const PORT = process.env.PORT || 4001;

const soups = ['gazpacho', 'borscht', 'primordial', 'avgolemono', 'laksa'];

app.post('/soups', (req, res, next) => {
  const name = req.query.name
  soups.push(name);
  res.status(201).send(name);
})

app.listen(PORT, () => {
  console.log(`Server is listening on port ${PORT}`);
});

my code read

app.post('/soups',(req,res,next) => {
  soups.push(req.query.name);
  res.status(201).send(req.query.name);
})

the biggest difference I can see is that I didn’t create a constant for the req param. Now my question is, is this bad form? I know since we are not altering anything with the information I don’t need to assign a local variable. I could see how this could really mess up stuff if we started altering the params but I think this is fine and would just like someone with more experience to let me know. I’m from the python world where we like to really be specific about what we are doing to make it readable and in that regard there solution is more elegant. Just curious if I’m missing the boat.