Jquery and vscode comp

I have issues with my jquery working with my vscode. I passed a jquery function through my vscode but not responding on the browser. But whenever I copy and paste the code on console its responding. What could be wrong pls.

Can you please provide us with some code of yours?