• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

139
Views
Javascript crea una lista de números 0 a n

Lo siento, no sé nada de programación, así que sé sincero conmigo. Necesito una expresión para una capa de texto en Adobe After Effects que use JavaScript. La expresión necesita crear una lista personalizable de números usando 3 variables - ejemplo:

 x = 0 //starting point (the first number in the list) y= 20 //increments (the size of the steps) z= 5 //the number of steps

la salida debe ser una lista con cada entrada en una nueva línea, en este caso:

 0 20 40 60 80

Espero que alguien pueda ayudar. Gracias

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

0

 x = 0 //starting point (the first number in the list) y= 20 //increments (the size of the steps) z= 5 //the number of steps let output=[] for(let i=x;i<z;i++){ console.log(i*y) output.push(i*y) } console.log(output)

about 3 years ago · Juan Pablo Isaza Report

0

 let arr = []; let x = 0; let y = 20; let z = 5; for (let i = 0; i < z * y; i+= y) { arr.push(i); } console.log(arr);

about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error