title: VisualStudio Code autocomplete not working for JavaScript
body: <p>vs code autocomplete when I write a script in HTML itself but when I make a separate file for javascript it does not work
  <a href="https://i.stack.imgur.com/hpRHM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hpRHM.jpg" alt="In the first image it recommend when I type &quot;doc&quot;" /></a></p>
  <p><a href="https://i.stack.imgur.com/RnZ83.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RnZ83.jpg" alt="In the second image it does not show any javascript function." /></a></p>