?? ?? JavaScript ?? ???? ??? ????.
?? ?? ??:
1. ?? ??(?? ?? ??)
- push(), pop(), Shift(), unshift(), reverse(), sort(), splice(), fill()
2. ???? ?? ??(? ??/? ??)
- map(), filter(), concat(), Slice(), toReversed(), toSorted(), toSpliced()
3. ????
- indexOf(), include(), find(), findIndex(), findLast(), findLastIndex()
4. ?? ??
- forEach(), map(), filter(), Reduce(), Every(), some()
5. ?? ?? ??
- Array.from(), Array.of(), Array.fromAsync()
6. ?? ???? ??
- join(), flat(), flatMap(), ??(), ?(), with()
?? 31?? ??? ?:
1. concat() - ? ? ??? ??? ?????.
const arr1 = [1, 2]; const arr2 = [3, 4]; console.log(arr1.concat(arr2)); // Output: [1, 2, 3, 4]
2. Join() - ?? ???? ???? ?????.
const fruits = ['Apple', 'Banana', 'Orange']; console.log(fruits.join(', ')); // Output: "Apple, Banana, Orange"
3. fill() - ?? ??? ?? ??? ????.
const numbers = [1, 2, 3, 4]; console.log(numbers.fill(0)); // Output: [0, 0, 0, 0]
4. include() - ??? ?? ??? ???? ??? ?????.
const colors = ['red', 'blue', 'green']; console.log(colors.includes('blue')); // Output: true
5. indexOf() - ??? ? ?? ???? ????.
const numbers2 = [1, 2, 3, 2]; console.log(numbers2.indexOf(2)); // Output: 1
6. reverse() - ?? ??? ??? ????.
const letters = ['a', 'b', 'c']; console.log(letters.reverse()); // Output: ['c', 'b', 'a']
7. sort() - ?? ??? ?????.
const unsorted = [3, 1, 4, 1, 5]; console.log(unsorted.sort()); // Output: [1, 1, 3, 4, 5]
8. splice() - ???? ??? ??/?????.
const months = ['Jan', 'March', 'April']; months.splice(1, 0, 'Feb'); console.log(months); // Output: ['Jan', 'Feb', 'March', 'April']
9. at() - ??? ???? ??? ?????.
const array1 = [5, 12, 8, 130, 44]; console.log(array1.at(2)); // Output: 8
10. copyWithin() - ?? ??? ?? ??? ?????.
const array2 = ['a', 'b', 'c', 'd', 'e']; console.log(array2.copyWithin(0, 3, 4)); // Output: ['d', 'b', 'c', 'd', 'e']
11. flat() - ?? ?? ??? ??? ? ??? ????.
const arr3 = [1, 2, [3, 4, [5, 6]]]; console.log(arr3.flat(2)); // Output: [1, 2, 3, 4, 5, 6]
12. Array.from() - ?? ?? ???? ??? ?????.
console.log(Array.from('hello')); // Output: ['h', 'e', 'l', 'l', 'o']
13. findLastIndex() - ??? ???? ??? ???? ?????.
const numbers3 = [5, 12, 8, 130, 44, 8]; console.log(numbers3.findLastIndex(num => num === 8)); // Output: 5
14. forEach() - ? ?? ??? ?? ??? ?????.
const numbers4 = [1, 2, 3]; numbers4.forEach(num => console.log(num * 2)); // Output: 2, 4, 6
15. Every() - ?? ??? ??? ????? ??????.
const numbers5 = [1, 2, 3, 4, 5]; console.log(numbers5.every(num => num > 0)); // Output: true
16. ??() - ?/? ?? ?? ?? ???? ?????.
const fruits2 = ['Apple', 'Banana']; const iterator = fruits2.entries(); console.log([...iterator]); // Output: [[0, 'Apple'], [1, 'Banana']]
17. ?() - ?? ??? ?? ???? ?????.
const fruits3 = ['Apple', 'Banana']; const values = [...fruits3.values()]; console.log(values); // Output: ['Apple', 'Banana']
18. toReversed() - ??? ??? ??? ?????.
const arr4 = [1, 2, 3]; console.log(arr4.toReversed()); // Output: [3, 2, 1] console.log(arr4); // Original array unchanged: [1, 2, 3]
19. toSorted() - ??? ??? ??? ?????.
const arr5 = [3, 1, 2]; console.log(arr5.toSorted()); // Output: [1, 2, 3] console.log(arr5); // Original array unchanged: [3, 1, 2]
20. toSpliced() - ????? ???? ? ??? ?????.
const arr6 = [1, 2, 3]; console.log(arr6.toSpliced(1, 1, 'two')); // Output: [1, 'two', 3] console.log(arr6); // Original array unchanged: [1, 2, 3]
21. with() - ??? ??? ? ??? ?????.
const arr7 = [1, 2, 3]; console.log(arr7.with(1, 'two')); // Output: [1, 'two', 3] console.log(arr7); // Original array unchanged: [1, 2, 3]
22. Array.fromAsync() - ??? ?? ???? ??? ?????.
async function* asyncGenerator() { yield 1; yield 2; } Array.fromAsync(asyncGenerator()).then(array => console.log(array)); // Output: [1, 2]
23. Array.of() - ????? ??? ?????.
console.log(Array.of(1, 2, 3)); // Output: [1, 2, 3]
24. map() - ?? ??? ? ??? ?????.
const numbers6 = [1, 2, 3]; console.log(numbers6.map(x => x * 2)); // Output: [2, 4, 6]
25. flatMap() - ??? ???? ??????.
const arr8 = [1, 2, 3]; console.log(arr8.flatMap(x => [x, x * 2])); // Output: [1, 2, 2, 4, 3, 6]
26. Reduce() - ??? ?? ??? ????(???? ?????)
const numbers7 = [1, 2, 3, 4]; console.log(numbers7.reduce((acc, curr) => acc + curr, 0)); // Output: 10
27. ReduceRight() - ??? ?? ??? ????(????? ????)
const numbers8 = [1, 2, 3, 4]; console.log(numbers8.reduceRight((acc, curr) => acc + curr, 0)); // Output: 10
28. some() - ??? ??? ??? ??? ????? ??????.
const numbers9 = [1, 2, 3, 4, 5]; console.log(numbers9.some(num => num > 4)); // Output: true
29. find() - ??? ??? ? ?? ??? ?????.
const numbers10 = [5, 12, 8, 130, 44]; console.log(numbers10.find(num => num > 10)); // Output: 12
30. findIndex() - ??? ??? ? ?? ???? ?????.
const numbers11 = [5, 12, 8, 130, 44]; console.log(numbers11.findIndex(num => num > 10)); // Output: 1
31. findLast() - ??? ??? ??? ??? ?????.
const numbers12 = [5, 12, 8, 130, 44]; console.log(numbers12.findLast(num => num > 10)); // Output: 44
?? ??:
- ? ???? ??, ??, ?? ?? ?? ?? ?? ??? ????.
- sort() ? reverse()? ?? ?? ???? ?? ??? ?????.
- map() ? filter()? ?? ?? ???? ? ??? ?????.
- toSorted() ? toReversed()? ?? ?? ?? ???? ?? ??? ???? ?? ???? ? ??? ?????.
? LinkedIn?? ?? ?????:
?? JavaScript, Node.js, React, Next.js, ????? ?????, ??? ??, ???? ?? ?? ???? ????? ?????. ?? ????, ???, ??? ???!
???: ??? ???
? ??? JavaScript ?? ??? ??: ?? ???(???)? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

JavaScript? ??? ?? ????? ??? ?? ??? ??? ?? ?? ?? ????? ?? ???? ???? ?????. ??? ?? ???? ?? ??? ?? ??? ???? ???? ?? ?? ???? ???? ?????. ?? ??, ??? ? ?? ???? ??? (? : ??? null? ??) ?? ??? ????? ??????. ??? ??? ???? ??? ??? ????. closure?? ?? ??? ?? ??; ? ??? ??? ?? ?? ???? ?? ???? ????. V8 ??? ?? ???, ?? ??, ??/?? ???? ?? ??? ?? ??? ??? ????? ?? ??? ?? ??? ????. ?? ?? ???? ??? ??? ??? ??? ???? ????? ?? ?? ???? ?? ???????.

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

?????, JavaScript ???! ?? ? JavaScript ??? ?? ?? ?????! ?? ?? ??? ??? ??? ? ????. Deno?? Oracle? ?? ??, ??? JavaScript ?? ??? ????, Google Chrome ???? ? ??? ??? ???? ?????. ?????! Deno Oracle? "JavaScript"??? ????? Oracle? ?? ??? ??? ??????. Node.js? Deno? ??? ? Ryan Dahl? ??? ?????? ???? ????? JavaScript? ??? ???? Oracle? ????? ???? ?????.

?? JavaScript ??? ??? ??? ?????? ?? ??? ?? ?? ??? ?? ???? ????. 1. ??? ???? ???? ?? ??? ?? ? ? ???? ??? ??? ?? ? ?? ????? ?????. 2. Angular? ?????? ??? ?? ???? ? ?? ?? ??? ??? ??? ???? ?????. 3. VUE? ???? ?? ??? ???? ?? ?? ??? ?????. ?? ?? ?? ??, ? ??, ???? ???? ? SSR? ???? ??? ??? ??? ???? ? ??? ?????. ???, ??? ??? ??? ????? ????. ??? ??? ??? ??? ?? ????.

iife (?? invokedfunctionexpression)? ?? ??? ???? ?? ????? ??? ???? ?? ??? ????? ?? ??? ? ?????. ??? ?? ?? ??? ???? ? ?? ??? ??? ?? (function () {/code/}) ();. ?? ???? ??? ?????. 1. ?? ??? ??? ?? ???? ?? ??? ??? ?????. 2. ?? ??? ??? ???? ?? ?? ??? ????. 3. ?? ?? ??? ????? ?? ???? ???????? ?? ? ??. ???? ?? ???? ?? ??? ES6 ??? ??? ??? ?? ? ??? ????? ??? ? ???? ???????.

Cacheapi? ?????? ?? ???? ??? ???? ???, ?? ??? ??? ?? ???? ? ??? ?? ? ???? ??? ??????. 1. ???? ????, ??? ??, ?? ?? ?? ???? ???? ??? ? ????. 2. ??? ?? ?? ??? ?? ? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?????. 4. ??? ???? ?? ?? ???? ?? ?? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 5. ?? ???? ??, ??? ??? ? ??? ??, ?? ??? ? ?? ???? ???? ???? ? ?? ?????. 6.?? ??? ?? ?? ?? ??, ???? ?? ? HTTP ?? ????? ?????? ???????.

??? JavaScript?? ??? ??? ?????? ?? ???????. ?? ??, ?? ?? ? ??? ??? ?? ????? ????? ?????. 1. ?? ??? ??? ????? ???? ??. ()? ?? ??? ??? ?????. ?. ()? ?? ??? ?? ??? ??? ?? ? ? ????. 2. ?? ??? .catch ()? ???? ?? ??? ??? ?? ??? ??????, ??? ???? ???? ????? ??? ? ????. 3. Promise.all ()? ?? ????? (?? ?? ?? ? ??????? ??), Promise.Race () (? ?? ??? ?? ?) ? Promise.AllSettled () (?? ??? ???? ??)
