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

135
Views
how do I display stars in multiple lines

here is a small script in python.

for i in range(x):
    print("*"*x)

in fact for x=2 for example it displays on line 1 2 stars and 2 stars on line 2. how to write in javascript? here is what I programmed (but it only displays 2 stars on line 1 for x=2)

for (let i = 0; i < x; i++) {
  console.log('*' * x);
}

who can help me please?

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

0

for (let i = 0; i < x; i++){
   console.log('*'.repeat(i));
}
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!