Skip to content

monu-kumar-dev/ts-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Learning Repository

This repository contains my TypeScript learning journey, where I practice core concepts with simple and clear examples. It is mainly created for learning, revision, and interview preparation.

Topics Covered

  • TypeScript setup & configuration
  • Primitive & non-primitive data types
  • Type inference & explicit typing
  • any vs unknown
  • Arrays, tuples & objects
  • Type aliases & interfaces
  • Optional & readonly properties
  • Functions (optional, default & callback)
  • Classes, access modifiers & inheritance
  • Generics & utility types

How to Run the Code

  1. Install TypeScript globally: npm install -g typescript

  2. Check TypeScript version: tsc --version

  3. Compile a TypeScript file: tsc filename.ts

  4. Run the generated JavaScript file: node filename.js

Purpose of This Repository

  • Build strong fundamentals of TypeScript
  • Prepare for semester exams & interviews
  • Improve understanding of typed JavaScript
  • Use as quick revision notes

Author

Monu Kumar
BCA Student | Aspiring Full-Stack Developer

If you find this repository helpful, feel free to give it a star.

About

TypeScript practice with examples of common Javascript errors and their fixes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published