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

150
Vistas
import and export variables and functions with jQuery

I've just started building two pages(index.html / watchlist.html) website with javascript and jQuery. have been using jQuery only a couple days.. so I am not familiar with the syntax.. so the problem is how to import a function and variable from one index.js file to another watchlist.js file. and some of the functions I separated in different(utils.js) file.

so I've tried this

In index.js on the top of the page I put

export {variableName}

In watchlist.js

import {variableName} from './index.js'

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