خرید بک لینک

Vote count: 0

let x = { //some kind of object };
things.forEach(function(thing) {
    //doing something with 'thing' that depends on variable 'x'
});

In the code above, how can I make the variable 'x' available inside the callback function? Or do I have to go back to using a for loop in this case?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 4 ارديبهشت 1395 ساعت: 4:44

صفحه بندی