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

88
Views
execute two functions in google app script

I have two functions (function one and function two). what I want is when function one execution completes, then function two execution starts and then after done. I managed to find some formula were when function one executes, then function two executes as well. but the problem is that, when function two completes, execution of function one starts again (FUNCTION-ONE --- FUNCTION TWO --- FUNCTION ONE). I done want the repeat of execution of function one again. each function should execute only once. see my code below;

function first() {
  console.log("1st");
}

function second() {
  console.log("2nd");
}

async function fnAsync() {
  await first();
  second();
}

fnAsync();

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!