I have an object with a property, which i am displaying to the console. If i type this, i can see the objects property, its displayed in the console:
console.log(myObject.property1);
If however i type either of these lines, it does not work:
console.log(`${myObject.property1}`);
or
console.log("property 1 is : " + myObject.property1);
Id appreciate it if someone could point out my mistake here and how i can cast my object as a string so the 2nd and 3rd lines will work.
thanks!