Can i pass the Argument with changable variable?

const printHelloWorlds = (j) => {
     if(j){
       console.log('Hello worlds')
  }
}


const sortName=printHelloWorlds;
sortName(5);

I don’t really understand your question. Also, why are you assigning a function to a variable, and then calling that; why don’t you directly call the function?