ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

Web design source code

Web design source code

前往频道在 Telegram

Advertisements Contact me👇🏻 @We_D5 design web source code free https://t.me/Web_design3

显示更多
1 026
订阅者
+124 小时
-27 天
+230 天

正在加载数据

相似频道
无数据
有任何问题?请刷新页面或联系我们的客服。
进出提及
---
---
---
---
---
---
吸引订阅者
11月 '26
十一月 '26
+21
在0个频道中
十月 '26
+718
在0个频道中
Get PRO
九月 '260
在0个频道中
Get PRO
八月 '260
在0个频道中
Get PRO
七月 '260
在0个频道中
Get PRO
六月 '260
在0个频道中
Get PRO
五月 '260
在1个频道中
Get PRO
四月 '260
在1个频道中
Get PRO
三月 '260
在1个频道中
Get PRO
二月 '260
在1个频道中
Get PRO
一月 '260
在1个频道中
Get PRO
十二月 '250
在1个频道中
Get PRO
十一月 '250
在1个频道中
Get PRO
十月 '250
在1个频道中
Get PRO
九月 '250
在1个频道中
Get PRO
八月 '250
在3个频道中
Get PRO
七月 '250
在1个频道中
Get PRO
六月 '25
+317
在0个频道中
Get PRO
五月 '250
在0个频道中
Get PRO
四月 '25
+3
在3个频道中
日期
订阅者增长
提及
频道
27 十一月+1
26 十一月+2
25 十一月+2
24 十一月+2
23 十一月0
22 十一月+1
21 十一月0
20 十一月0
19 十一月+3
18 十一月0
17 十一月+1
16 十一月0
15 十一月0
14 十一月0
13 十一月+1
12 十一月0
11 十一月+1
10 十一月0
09 十一月0
08 十一月+1
07 十一月0
06 十一月0
05 十一月0
04 十一月+1
03 十一月0
02 十一月+4
01 十一月+1
频道帖子
These arrays are useful for matrices, tables, grids, and structured datasets. 16. Arrays of Objects In real-world applications, arrays frequently store multiple objects. Example: Employee Records
let employees = [
    {
        name: "Rahul",
        salary: 50000
    },
    {
        name: "Priya",
        salary: 60000
    },
    {
        name: "Amit",
        salary: 45000
    }
];

console.log(employees[0].name);
console.log(employees[1].salary);
Output:
Rahul
60000
You can also filter employees based on salary:
let highSalary = employees.filter(
    emp => emp.salary > 50000
);

console.log(highSalary);
This is commonly used when working with API responses and business applications. 17. Real-World Example: Shopping Cart Let's build a simple shopping cart using JavaScript arrays.
let cart = [
    { name: "Laptop", price: 50000 },
    { name: "Mouse", price: 1000 },
    { name: "Keyboard", price: 2000 }
];

let total = cart.reduce((sum, item) => {
    return sum + item.price;
}, 0);

console.log("Cart Items:", cart.length);
console.log("Total Amount:", total);
Output:
Cart Items: 3
Total Amount: 53000
This example combines arrays, objects, and the reduce() method. 18. Important Array Methods, Quick Revision 🔹 push() ➜ Adds an element at the end. 🔹 pop() ➜ Removes the last element. 🔹 shift() ➜ Removes the first element. 🔹 unshift() ➜ Adds an element at the beginning. 🔹 map() ➜ Transforms every element and returns a new array. 🔹 filter() ➜ Returns elements matching a condition. 🔹 reduce() ➜ Combines elements into a single result. 🔹 forEach() ➜ Executes a function for every element. 🔹 find() ➜ Returns the first matching element. 🔹 includes() ➜ Checks whether an element exists. 🔹 indexOf() ➜ Returns the first matching index. 🔹 slice() ➜ Extracts a portion without modifying the original array. 🔹 splice() ➜ Adds, removes, or replaces elements in the original array. 🔹 sort() ➜ Sorts array elements. 🔹 join() ➜ Converts array elements into a string. Double Tap ❤️ For More
26 11月, 06:34

2
let numbers = [10, 20, 30, 40, 50]; let result = numbers.slice(1, 4); console.log(result); Output: [20, 30, 40] D. splice() Adds, removes, or replaces elements in the original array. fruits.splice(1, 1, "Orange"); console.log(fruits); Output: ["Apple", "Orange", "Banana"] Here: • 1 ➜ Starting index. • 1 ➜ Number of elements to remove. • "Orange" ➜ New element to insert. 8. Iterating Through Arrays You can use loops to access every element in an array. A. Using for Loop for (let i = 0; i < fruits.length; i++) { console.log(fruits[i]); } B. Using for...of for (let fruit of fruits) { console.log(fruit); } C. Using forEach() Executes a callback function for each array element. let numbers = [10, 20, 30]; numbers.forEach(function(num) { console.log(num); }); 9. map() Method The map() method creates a new array by transforming every element of the original array. Example: Multiply Every Number by 2 let numbers = [1, 2, 3, 4, 5]; let result = numbers.map(num => num * 2); console.log(result); Output: [2, 4, 6, 8, 10] Use case: Transforming data, formatting values, and preparing information for display. 10. filter() Method The filter() method creates a new array containing elements that satisfy a given condition. Example: Find Even Numbers let numbers = [1, 2, 3, 4, 5, 6]; let result = numbers.filter(num => num % 2 === 0); console.log(result); Output: [2, 4, 6] Use case: Filtering products, employees, customers, and records based on conditions. 11. reduce() Method The reduce() method processes array elements and combines them into a single accumulated result. Example: Calculate Total let numbers = [10, 20, 30, 40]; let total = numbers.reduce((sum, num) => { return sum + num; }, 0); console.log(total); Output: 100 Use case: Calculating totals, sums, averages, and aggregations. 12. find() Method Returns the first element that satisfies a specified condition. let numbers = [10, 20, 30, 40]; let result = numbers.find(num => num > 20); console.log(result); Output: 30 Unlike filter(), find() returns only the first matching element. 13. sort() Method Used to sort array elements. let numbers = [40, 10, 30, 20]; numbers.sort((a, b) => a - b); console.log(numbers); Output: [10, 20, 30, 40] For descending order: numbers.sort((a, b) => b - a); console.log(numbers); Important: Calling sort() directly without a comparator sorts elements as strings by default. 14. Joining Array Elements The join() method combines array elements into a single string. let result = fruits.join(", "); console.log(result); Output: Apple, Mango, Banana 15. Multidimensional Arrays A multidimensional array contains other arrays as elements. let numbers = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]; console.log(numbers[0][1]); console.log(numbers[2][2]); Output: 2 9
34
3
💻 JavaScript Learning Series: Day 7 Topic 7: Arrays in JavaScript Arrays are one of the most important concepts in JavaScript. An array is a special type of object used to store multiple values in a single variable. Instead of creating separate variables for every value, you can store them together in an array. Example: Without an array: let fruit1 = "Apple"; let fruit2 = "Mango"; let fruit3 = "Banana"; Using an array: let fruits = ["Apple", "Mango", "Banana"]; console.log(fruits); Output: ["Apple", "Mango", "Banana"] Let's understand arrays step by step. 1. Creating an Array You can create an array using square brackets []. let fruits = ["Apple", "Mango", "Banana"]; let numbers = [10, 20, 30, 40]; let mixed = ["Rahul", 25, true, 50000]; console.log(fruits); console.log(numbers); console.log(mixed); JavaScript arrays can contain different data types. You can also create an array using the Array constructor: let numbers = new Array(10, 20, 30); console.log(numbers); 2. Accessing Array Elements Array elements are accessed using their index positions. Important: JavaScript arrays use zero-based indexing. • First element ➜ Index 0 • Second element ➜ Index 1 • Third element ➜ Index 2 • Fourth element ➜ Index 3 Example: console.log(fruits[0]); console.log(fruits[1]); console.log(fruits[2]); Output: Apple Mango Banana 3. Modifying Array Elements You can change an array element by accessing its index. fruits[1] = "Orange"; console.log(fruits); Output: ["Apple", "Orange", "Banana"] The element at index 1 has been replaced. 4. Finding Array Length The length property returns the total number of elements in an array. console.log(fruits.length); Output: 3 You can also use it to access the last element: let lastFruit = fruits[fruits.length - 1]; console.log(lastFruit); Output: Banana 5. Adding Elements to an Array JavaScript provides several methods to add elements. A. push() Adds an element at the end of an array. let fruits = ["Apple", "Mango"]; fruits.push("Banana"); console.log(fruits); Output: ["Apple", "Mango", "Banana"] B. unshift() Adds an element at the beginning of an array. fruits.unshift("Banana"); console.log(fruits); Output: ["Banana", "Apple", "Mango"] 6. Removing Elements from an Array A. pop() Removes the last element. fruits.pop(); console.log(fruits); Output: ["Apple", "Mango"] B. shift() Removes the first element. fruits.shift(); console.log(fruits); Output: ["Mango", "Banana"] 7. Important Array Methods Let's understand some commonly used array methods. A. indexOf() Returns the first index of a specified element, or -1 if it is not found. console.log(fruits.indexOf("Mango")); Output: 1 B. includes() Checks whether an array contains a particular element. console.log(fruits.includes("Mango")); Output: true C. slice() Returns a portion of an array without modifying the original array.
37
4
🔅 Learn JavaScript Arrays in Seconds+1
🔅 Learn JavaScript Arrays in Seconds
45
5
Did you know that the select element in HTML has a hidden "expanded" mode? 😁 Which can be activated by setting a size attrib
Did you know that the select element in HTML has a hidden "expanded" mode? 😁 Which can be activated by setting a size attribute. By default, select creates a drop-down menu. But when you provide a specific value for "size", it creates a vertical list, of the said size. The user can pick one from this.
198
6
Here is a demo which illustrates the behaviour of different values for the "object-fit" property in css for image elements an
Here is a demo which illustrates the behaviour of different values for the "object-fit" property in css for image elements and video elements 🖼 This property determines how an image or a video fits inside the boundary of the element. Whether we crop it, shrink it, or add empty bars around. My favourite value is "cover" which crops the image, and can be pretty helpful when working with images of arbitrary dimensions - such as a gallery application
179
7
CSS is going to become a programming language? 😮 Not exactly! But something very interesting is coming: There is already con
CSS is going to become a programming language? 😮 Not exactly! But something very interesting is coming: There is already conditional logic available in CSS. You can apply different styling based on the viewport dimensions or other media criteria. But the syntax tends to be complex and split across multiple sections. ✨ A new if() function is coming to CSS to make this syntax more concise 🔥 within the same rule, you can apply different values based on media queries and style queries. ⚠️ This is still very much an experimental feature, supported only in Chrome and Edge. Will share more details on this in upcoming posts!
159
8
A simple visualization for how to use the gap property to add space between elements in a grid container in CSS!
A simple visualization for how to use the gap property to add space between elements in a grid container in CSS!
144
9
🔅React Hooks Cheatsheet+7
🔅React Hooks Cheatsheet
252
10
✅We're offering Gemini AI Pro activation for 18 months for just $4, along with a 5TB🔥☄ Google Storage subscription. Activati
✅We're offering Gemini AI Pro activation for 18 months for just $4, along with a 5TB🔥☄ Google Storage subscription. Activation link (global). This subscription will be activated through the official Jio India promotion for 18 months. Once activated, the official Google AI Pro subscription page will display the full 18-month subscription expiration date. The price is only $4. Contact👇 @We_D5 purchase. payment method: Binance
240
11
🧿 HTML Shortcuts You Must Know+8
🧿 HTML Shortcuts You Must Know
299
12
🔅 CSS Clamp and font-size p { font-size: clamp(1rem, 4vw, 1.5rem); }
🔅 CSS Clamp and font-size p { font-size: clamp(1rem, 4vw, 1.5rem); }
234
13
🔅 CSS Clamp is the future
🔅 CSS Clamp is the future
201
14
🔅 HTML: Responsive images
🔅 HTML: Responsive images
181
15
⌨️ Viewport units in CSS They are relative units that measure as a percentage of the browser's viewport dimensions.
⌨️ Viewport units in CSS They are relative units that measure as a percentage of the browser's viewport dimensions.
195
16
🔰 CSS: Custom List Markers
🔰 CSS: Custom List Markers
235
17
🔰 CSS: Gap property
🔰 CSS: Gap property
209
18
Container Queries for Cards Responsive layouts made smarter. CSS container queries let your cards adapt to any grid.+5
Container Queries for Cards Responsive layouts made smarter. CSS container queries let your cards adapt to any grid.
209
19
⌨️ CSS tip: easy layout This layout is ideal for creating documentation pages or any website with a fixed-width sidebar for n
⌨️ CSS tip: easy layout This layout is ideal for creating documentation pages or any website with a fixed-width sidebar for navigation and a flexible content area for displaying information.
163
20
🔅 JavaScript Course For Beginners - Build a Notes App Learn JavaScript from the ground up and build a complete note-taking a
🔅 JavaScript Course For Beginners - Build a Notes App Learn JavaScript from the ground up and build a complete note-taking app. This JavaScript course for beginners covers the essential fundamentals, DOM manipulation, event handling, local storage and practical project development.
195