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