Not sure what you mean. Neither of those are variable declarations in JavaScript. I think you might be referring to something like this?
const varName = {
param: 'This is a string.',
integer: 25
};
console.log(varName); // Prints the above object.
const { integer } = varName;
console.log(integer); // Prints 25