Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marah-aljabaly/assignment-gsg


https://github.com/marah-aljabaly/assignment-gsg

Last synced: about 18 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Assignment to securing my place in the React & NextJS Training - Gaza Sky Geeks

HTML & CSS Fundamentals


  • Task 1: Write an HTML page with the following:



  • A heading with the text "Product List".

  • An unordered list (
      ) with at least 3 list items representing products (e.g., "Apple", "Banana", "Orange").


  • Style the page with CSS to:


    • Center the heading on the page.

    • Make the list items bold and green.

    • Add a 1px border to the list and set the list’s background color to light gray.


JavaScript Fundamentals


  • Task 2: You are given an array of numbers. Write a function that calculates the total sum and the average of the numbers using the reduce method.

  • Task 3: You are given an array of strings, some of which may be duplicates. Write a function that removes all duplicates from the array in constant time complexity and returns the array with unique values.

TypeScript Basics


  • Task 4: Create a TypeScript interface for a Product with the following properties:


    • name: string

    • price: number


  • Write a function that:


    • Accepts an array of Product objects.

    • Returns the total price of all products.



  • • Task 5: Write a TypeScript function that accepts a string and checks if it is a valid email address. You can assume the email should have a basic structure like [email protected]. Use regular expressions to implement this.