Did you know javascript is so amazing, you could sort an array with setTimeout function ?π
let arr = [10, 100, 650, 25 , 5, 50];
arr.forEach((item) => {
setTimeout(() => console.log(item), item)
});
// output
5
10
25
50
100
650
Did you know javascript is so amazing, you could sort an array with setTimeout function ?π
let arr = [10, 100, 650, 25 , 5, 50];
arr.forEach((item) => {
setTimeout(() => console.log(item), item)
});
// output
5
10
25
50
100
650
For further actions, you may consider blocking this person and/or reporting abuse
From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.
Denis Bratchikov -
Karimulla Kanugala -
Avinash Vagh -
Anthony Max -
Top comments (0)