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

214
Views
estoy tratando de generar estos saludos con estas declaraciones condicionales en mi proyecto de reacción, sin embargo, solo muestra Buenos días

const acción = función () { const tiempo = [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 ,20,21,22,23 ]

 if (new Date().getHours() === time[0], time[1], time[2], time[3], time[4], time[5], time[6], time[7], time[8], time[9], time[10], time[11]){ return 'Good Morning' } else if (new Date().getHours() === time[12], time[13], time[14], time[15], time[16], time[17], time[18]) { return 'Good Afternoon' } else if (new Date().getHours() === time[19], time[20], time[21], time[22], time[23]) { return 'Good Evening' } }
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!