I want to use VS Code to try out the examples of a JavaScript book, but there\'s no intellisense, or at least I don\'t know how to activate it.
In Visual Studio this
It worked for me, when the file had a .js extension. I didn't get any intellisense when I pasted it into .html file between script tags.
Edit To Add: You can also change the Language Mode by clicking 'HTML' in the bottom of the VS Code window and change it to 'JavaScript'.