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

183
Visualizações
Is there a Javascript event for function call or variable

Is there a event listener for function calls or creation or assignment of variables(global and local) without any Javascript library(if possible). I the following code

window.addEventListener("function" /*Just need to know the right event name*/, function() {
  console.log("called: " + event.name);
  console.log("arguments: " + event.arguments.length);
});
let v1 = "unset";

function test(x,y) {
  var v2 = y;
  v1 = "console ";
  console.log(v1 + v2 + x);
}
test("1234","test ");

The console output should be "console test 1234" "name: test" & "arguments: 2"

I've checked so many sites for a list of all JS event listenters, but have always found quite a few undocumented.

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