I have been attempting to log an object's attributes using console.log(JSON.stringify(object)) in TypeScript and then converting it to JavaScript. However, when I call the function, nothing gets logged. I am creating the object with the parameters of the class. Here is the code snippet:
*class app{
constructor ( file: string ){}
}
function createApp(){
let v = new app ( 'image 2');
console.log(JSON.stringify ( v ) );
}
createApp();*
Your assistance on this matter would be greatly appreciated.