DileepKumarMantena / AngularPractice

This Repo has the angular practice code
0 stars 0 forks source link

TypeScript Practice #3

Open DileepKumarMantena opened 7 months ago

DileepKumarMantena commented 7 months ago

02/05/2024

2/05/2024

  1. Module Program Question:

    Create a TypeScript module that contains a function findMax which finds the maximum element in an array of numbers. findMin which finds the minimum element in an array of numbers.Then, import this module into another TypeScript file and use the findMax function to find the maximum and minimum number in an array [1, 5, 3, 9, 2]. Print the result.

    8/5/2024

    1.declare a genrics for taking an array and process the even numbers into one array and odd numbers into anthor array

    9/05/2024

    1.Can you give me a example for single, multiple multilevel inheritance 1.Identity Function: Write a generic function called identity that takes an argument and returns it without modification. The function should work with any type. 2.First Element of an Array: Create a generic function called firstElement that takes an array as input and returns the first element of that array. Ensure the function works with arrays of any type.

14/05/2024 1.use the https://randomuser.me/api api and show the information in a detailed manner 2.Write a function for removing the duplicates in a typescript array

santhu369 commented 6 months ago

enum

santhu369 commented 6 months ago

Class Program Rectangle

Module Program Question: import

inheritance