[Solved] How to write the for loop in javascript [closed]
$.each() doesn’t return what the callback function does, you need to use $.map, then .join() to combine all the results back into a string. But a simpler way is to take the loop out of the concatenation, and instead append to the string in the loop. var htmlString = ‘<section class=”content-header”><h1>Employee</h1></section><!– Main content –><section class=”content”><div … Read more