Script new function with id [closed]

how can I implement such a function with specific id’s?

a specific id should be inserted at the end of the ‘mySwiper’ variable. For example ‘mySwiper123’ via function (id)

i cant give more deteils… i thing you check this problem!

Thank you for Helping

function newFunctionWithId(id) {
var mySwiper+id = new Swiper('.divid'+id, 
    {
     // more ///
    });
}