Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!