I'm trying to print out both user and company objects when i use console.log(user,company) it all working fine and i can see the objects content but the outformat is not desired . i tried to template it with backticks but in that case i just get an output like [object, object] is there a way to both format and see inside object at the same time ? User and Company are two classes that made objects with same names respectively and the code below is what im trying to achieve .
import { User } from "./User";
import { Company } from "./Company";
const user = new User();
const company = new Company();
console.log(`
${user}
${comapny}
`);