Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

416
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda