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

223
Visualizações
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 Respostas
Responde à pergunta

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 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