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

98
Views
I'm trying to take the output of a console function and put it into an alert

So, I've been trying to take the output of the console and put it into an alert(). The code that I have been using is as follows, var d = "x"; console.log(d);. Then I get stuck because I do not know how to take the output of the console.log().

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

console.log just prints to console, if you want to show the same in an alert window, just do alert

 var d = "x"; 
 //console.log(d);
 alert(d);
about 4 years ago · Juan Pablo Isaza Report

0

Override the console.log function with a function that alert the input.

    console.log = function(text){
        alert(text);
    }
about 4 years ago · Juan Pablo Isaza Report
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!