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

156
Views
Cannot save element inside axios
function getMovie(){
  let movieId = storage.getItem('movieId');
  var title = "";
  axios.get("https://api.themoviedb.org/3/movie/" + movieId + "?api_key=...." + "&language=en")
  .then(function (e) {
    let movie = e.data;
    title = movie.title;
    console.log(title); //frist
  })
  console.log(title); //second
}

Only the first one displays on the console, the second one does not. I would like to display both of them.

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!