Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

411
Visualizações
why is that when I save a code file in VS code as a .js file it wont run or open in a browser?

Im doing practice work in creating a javascript and testing it out. like creating a box and adding javascript to change the color, size, fade, etc. im instructed to create 2 files in VS code. one named index.html and one named javascript.js. i have to copy and save a code in the html file. then it asks me to write my javascript in the javascript.js file. but it in VScode its not allowing my to open the javascript.js file. im wondering what the issue is or am i writing it in the wrong file? here are a screen shot of what im asked to do and what im getting

enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Checkout your second screenshot, you have put the html content in a js file mistakenly!, instead try this:

  1. Create a index.html file and put the html content inside it
  2. Create a javascript.js file and put the JavaScript content inside it.

Then open your index.html file in a browser.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda