Skip to content

SoadAsHamimMahi/Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Assignment: Advanced Problem Solving with TypeScript & OOP

This repository contains solutions for the "Advanced Problem Solving with TypeScript & OOP" assignment.

Contents

  1. solutions.ts: Contains the TypeScript implementation for all 7 coding problems, demonstrating proficiency in data typing, interfaces, classes, inheritance, type checking, and manipulation of data structures.
  2. blog-1.md: A technical blog post exploring why the any type is considered a "type safety hole," why unknown is a safer alternative, and how type narrowing works in TypeScript.
  3. blog-2.md: A technical blog post detailing how Generics allow developers to build reusable and strictly typed components and functions.

How to Run

To run and test the TypeScript code, ensure you have Node.js and TypeScript installed. You can compile and run the file using ts-node:

npm install -g typescript ts-node
ts-node solutions.ts

Alternatively, compile it to JavaScript and run with Node:

tsc solutions.ts
node solutions.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors