A simple project demonstrating the fundamentals of TypeScript for beginners.
- ✅ Arrays, Variables, Operators
- ✅ Data Types, Objects
- ✅ Type Annotations (
string
,number
,boolean
,any
, etc.) - ✅ Interfaces and Types
- ✅ Functions with typed parameters and return types
- ✅ loop, Tuple
- ✅ Switch statements and Conditional statemnents
- ✅ Scope
Make sure you have Node.js and npm installed.
node -v
npm -v
Installation
Clone the repository
bash
Copy
Edit
git clone https://github.com/yourusername/typescript-basics.git
cd typescript-basics
Install dependencies
bash
Copy
Edit
npm install
Compile TypeScript to JavaScript
bash
Copy
Edit
node dist/index.js
🛠 Scripts
npx tsc – Compile the TypeScript files
✍️ Author
Name: Sameer Manzur
GitHub: @sameermanzur