How to add page numbers in Links

I have multiple RSS feed links like:
https://www.kijiji.ca/rss-srp-rideshare-carpool/ontario/rideshare/k0c5l9004
https://www.kijiji.ca/rss-srp-rideshare-carpool/ontario/rideshare/page-2/k0c5l9004
https://www.kijiji.ca/rss-srp-rideshare-carpool/ontario/rideshare/page-3/k0c5l9004
https://www.kijiji.ca/rss-srp-rideshare-carpool/ontario/rideshare/page-4/k0c5l9004
https://www.kijiji.ca/rss-srp-rideshare-carpool/ontario/rideshare/page-5/k0c5l9004

How do i loop onto this links rather than defining in array. So i can just replace the page numbers. Here my code

$(document).ready(function() {

   var feed = "https://www.kijiji.ca/rss-srp-rideshare-carpool/ontario/rideshare/k0c5l9004";
    $.ajax(feed, {
        accepts:{
            xml:"application/rss+xml"
        },
        dataType:"xml",
        success:function(data) {
            $(data).find("item").each(function () {
                var el = $(this);
                console.log("------------------------");
                var titleU= el.find("title").text();
                var title= titleU.toLowerCase();
                var link= el.find("link").text();
                var description= el.find("description").text();
                console.log(title);
                console.log(description);
            });
        }   
    });
});

I don’t understand what you are trying to do :stuck_out_tongue:

You have five RSS feeds. Are you trying to figure out how to have your feed variable loop through each one and store all the results?

Yes

You can have an array of all these feeds. At this point, it would just be you looping through each feed and calling a function that reads your current feed’s contents.