Well, in the end, it’s a matter of personal preference whether you use a variable or not. There is no “right” and “wrong” because everybody has got their own habits. Some people are used to reading one-liners. Others aren’t.
The best would be if you just do what feels right for you now. I can explain a lot all day long but some things can only be learnt by experience. Write your code as you want, and in a couple of weeks or years, when you revise your older code or read other people’s code, you’ll very likely know what you could do to improve the readability for you.