Use custom class in k6

Can we define custom class like Stack and then use in k6 script

Hi @prishu25

Do you refer to importing a nodejs module, suc as documented in Modules? If not, can you further elaborate, maybe share some code with details of what you are trying to achieve?

Cheers!