Web3.js
has some methods to convert number to a big number, you can have a look at the documentation: web3.utils.toWei
web3.utils.toWei('1', 'ether');
> "1000000000000000000"
And for the next time, please search at first, and then ask questions, How do I ask a good question? - General / Meta - OpenZeppelin Community