Let's say that Ethereum solidity returns a number from one of its functions and I get that into Javascript.
Now ,because I write tests in my js application, I have to check if the returned value is equal to some number multiplied by some number.
Basically, let's look at the scenario.
In javascript,
Way 1)
web3.utils.toBN('100000000000000') * 30
Way 2)
web3.utils.toBN('100000000000000') * web3.utils.toBN('30')
Depending on the above 2 ones, can I use Way 1 ) ? reason is that if I use Way 2, my code just becomes bloated with toBN
functions all the way.