With placeholder variables which are to be filled later with data from a database you can obviously do it in both ways. The only question is, are there any circumstances in which JavaScript treats null differently than an array with no elements or an object with no properties?
Does JavaScript ever treat:
let userdetails = null
differently from either:
let userdetails = {}
//or
let userdetails = []