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

225
Vistas
Create code on using input? Javascipt GUI

I'm programming a web-app on electron and need the app to do some stuff based on use input:

basically, on a user input, my code saves var string = "stuff" then on another input it saves var string = "other_stuff is it possible to

#1 - detect how many times the user has inputted to get a var and save it using something like var string_1 = "stuff" and var string_2 = "other_stuff" etc

#2 - when these buttons are pressed, create code within a loop (that will be ran on a buttonpress) that looks something along the lines of this

try{
  function('string_1');
}
catch (error)
  console.log(error);

try{
  function('string_2');
}
catch (error)
  console.log(error);
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

On button press use array.push(str); to add to the end of an array.

Then use

function txt_download(str) {
    // code stuff
}

for (const element of array) {
    txt_download(element)
}

To run the functions

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