How to run this in vs code?

I am not able to run and get output for the js script in vs code

Have you tried Using VS Code with JavaScript | Algorand Developer Portal?

Thank you, It worked.