SwiftCart

SwiftCart - E-Commerce Website

Netlify Link: https://rad-kashata-5f89af.netlify.app/

GitHub Pages Link: https://khanmahfuj34.github.io/SwiftCart/


âť“ JavaScript Questions & Answers

1) What is the difference between null and undefined?

undefined mane variable declare kora hoise kintu value assign kora hoy nai. null mane intentionally empty value, mane ami nijer iccha te bole disi je ekhane kono value nai.

2) What is the use of the map() function in JavaScript? How is it different from forEach()?

map() use hoy array er protita element ke change kore notun array bananor jonne. forEach() shudhu loop chalay, kintu notun array return kore na. Simple vabe: map = new array dey, forEach = just loop.

3) What is the difference between == and ===?

== sudhu value compare kore (type convert korte pare). === value + type duita i strictly compare kore. So === beshi safe and recommended.

4) What is the significance of async/await in fetching API data?

async/await use korle API call asynchronous vabe clean and readable hoy. Eta promise handle kora easy kore and code dekhte synchronous moto lage, tai error handle o easy hoy (try-catch diye).

5) Explain the concept of Scope in JavaScript (Global, Function, Block)

Scope mane variable kothay access kora jabe. Global scope = sob jayga theke access kora jay. Function scope = sudhu oi function er vitore use kora jay. Block scope = { } block er vitore (let, const) use kora jay.

đź“‹ Project Description - SwiftCart

About the Project

SwiftCart is a modern e-commerce website built using Tailwind CSS and DaisyUI. It fetches real product data from the FakeStore API and provides a complete shopping experience for users.

🛠️ Technology Stack

✨ Features and Functionality

1. Responsive Navbar

2. Hero/Banner Section

3. Why Choose Us Section

5. Dynamic Category Filter

6. Product Cards

Each product card includes:

7. Modal - Product Details

8. Shopping Cart Functionality

10. Responsive Design

đź”— API Integration

Uses FakeStore API endpoints:

GET /products           - Get all products
GET /products/categories - Get all available categories
GET /products/category/[name] - Get products by category
GET /products/[id]      - Get single product details

📱 Responsive Breakpoints

🎨 Design Features

📊 Git Commits

Project includes 5+ meaningful commits:


Developer: Mahfuj Khan
Start Date: February 2026
Deadline: 17th February 2026
Status: âś… Completed