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

242
Vistas
How to get a text/javascript file to communicate with a module?

I have a javascript module file that communicates with my database and I have a couple text/javascript files (screenshot below). In my text/javascript files I have users submitting highscores. So far I have been sending these to the browser local storage, retrieving them in the module file, and then exporting them to my database. For several reasons, this method does not seem sustainable as I further develop my app.

I did some research on how to get my files to "communicate" with each other but the only solution I can find is to re-define all my javascript files as modules, that way I can use the import function to share functions/variables. My question is, how do I get these files to communicate with each other? And is re-defining all js files to be modules feasible?

File Definitions

about 4 years ago · Juan Pablo Isaza
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