How can I create a function with parameters

I am trying to create a reusable function where I can pass few parameters. I not able to find any option to do so. I watched this https://www.youtube.com/watch?v=to3iR5EcRks and it shows a way to create, however there isn’t any option in my dashboard under data section. I wonder if it has been removed.

Never mind I found it, I can still create a function using Formulas and can pass the parameters. Previously I wasn’t able to see the parameter options.

You need to go either to Actions → Formulas or do a Global Workflow and use workflow parameters with a custom js block.