Advertisement
biswasrohit20

java gold

Mar 12th, 2021
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. function count(start, end) {
  2. var result = "";
  3. for (var i = start; i <= end; i++) {
  4. result = result + i;
  5. if (i < end) {
  6. result = result + ",";
  7. }
  8. }
  9.  
  10. return result;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement