What is the difference between
instance.totalSupply() vs instance.methods.totalSupply().call()
To my knowledge one is for truffle and the other is for web3. But truffle also uses web3 then why can i not call the functions in a single way?
From web3.js version 1.0 it has been recommended to call smart contract functions like this
Reference : methods
For earlier version ( < 1.0) we could call like
Note : from docs