Is not is possible to create method with certain parameter??

I could not create a method having at least one parameter in it.
Please help me whether it is possible to create such method?

Hello and welcome (I see it is your first post).

And because it is your first post I will give you an answer but…
With the risk that I repeat myself. Please read the docs (is a really great help) and search the forum (also a great help) and as a last resort consume time of those that are willing to help you!

call a method with an argument and read return value:```
var result = yourMethod(arg1, arg2 etc)

interpret the arguments and return a value:

function yourMethod() {
var arg1 = arguments[0];
var arg2 = arguments[1];
etc.

 return retVal;

}