After successfully deploying my contract on ropsten network, I attempted to interact with it through a web browser. However, I encountered an error message stating that it is not a function. Interestingly, when I tried interacting with the contract on NodeJS, everything worked smoothly without any errors. This leads me to believe that the issue does not lie with the contract address or ABI file.
Below is the code snippet I used. Could you please review it for any potential errors?
const address = 'Contract addresss';
const myContract = new web3.eth.Contract(ABI, address);
let result = await myContract.methods.createDoc('asdf').call();
console.log(result);