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

100
Views
estoy tratando de mostrar un código en un área de texto, lo hice funcionar, simplemente no sé cómo hacer que muestre mis valores JAVASCRIPT

// tengo esto ahora mismo, estoy tratando de averiguar cómo podría imprimir los valores en un área de texto

onEvent("factoresde2", "clic", function( ) { ``` var num = calcular();

 function calculate(num) { ``` var half = Math.floor(num / 2), ``` str = '1', ``` i, j;
 num % 2 === 0 ? (i = 2, j = 1) : (i = 3, j = 2); ``` for (i; i <= half; i += j) {
 num % i === 0 ? str += ',' + i : false; }
 str += ',' + num;
 } setText("text_area3", "Your factors are: " + calculate(num)); });
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!