How to create tsconfig.json for a TypeScript project: step-by-step guide
Hi everyone! I'm new to TypeScript and can't figure out the project setup. I have a file `app.ts` that I want to compile to JavaScript, but TypeScript complains about any of my attempts.\n\nHere's what I'm doing:\n1. Creating a project folder.\n2. Installing TypeScript globally: `npm install -g typescript`.\n3. Trying to compile the file with the command `tsc app.ts`.\n\nBut the compiler gives errors like `Cannot find name 'console'` or `Cannot compile modules unless the '--module' flag is provided`. I've heard that I need to create a `tsconfig.json`, but I don't know how to do that. Google says I can run `tsc --init`, but I'm not sure if that's the right approach.\n\nMy code:\n\n```typescript\n// app.ts\nfunction greet(name: string): string {\n return `Hello, ${name}!`;\n}\n\nconst user = "A