Skip to content

Instantly share code, notes, and snippets.

View aliasimkazmi's full-sized avatar
🎯
Focusing

Ali Asim Kazmi aliasimkazmi

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@aliasimkazmi
aliasimkazmi / index.html
Created July 25, 2018 15:32
Welcome to Karachi [This is a test page for Karachi] // source https://jsbin.com/vigejor
<!doctype html>
<html>
<head>
<meta name="description" content="[This is a test page for Karachi]">
<title>Welcome to Karachi</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@aliasimkazmi
aliasimkazmi / Shopping Cart
Last active April 18, 2024 13:36
Javascript code shopping cart
/* This is a basic implementation. Depending on your needs, you might want to add more features like removing items from the cart, updating quantities, or persisting the cart data across sessions. */
// Sample product data
const products = [
{ id: 1, name: 'Product 1', price: 10 },
{ id: 2, name: 'Product 2', price: 20 },
{ id: 3, name: 'Product 3', price: 30 },
];
// Initialize cart