A beginner that needs help with basic backend

With using the basic wix backend multiplication function, how would you implement this into the frontend by calling it and how would it work if you were to put it in a let variable that requires 2 or more fields? Eg
let toInsertIntoACollection = {
“id” : [backend function here] ,
“type” : Math . floor ( Math . random () * resultCount )

                    };
1 Like