Hey I am new with Solidity. And I just tried to link my front end view with the smart contract. With the simplest possible approach.
My contract:-
My JS code:-
Console keep printing 'null' I don't know why? I am sure about contract initialization because I used web-pack box.Thanks in advance.