Need some help with a javascript problem
Need some help with a javascript problem
Not sure how asynchronous callbacks work. I have code like this:
- var count = 0;
- $('.count').each(function() {
- count++;
- }
- console.log(count);
So would i have to go through each of the elements independently with a traditional for loop in order to get a count to appear correctly? Or would this get the count?
Thanks ![]()
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


