If you're trying to print object in console and you're getting [object Object], then most probably you're trying to print the object as a string value. Add comma(,), and not plus operator(+)
Ex:
console.log('The value of object is: ' + obj)
❌❌
console.log('The value of object is: ' , obj)
✔️✔️
 

 
    
Top comments (0)