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

303
Views
Estoy tratando de imprimir algo al frente para insertarlo en la tabla si el valor no está vacío

Quiero insertar un código de moneda al frente si el valor no está vacío

 <td class="table-cell">`+ iLowest + `</td> <td class="table-cell">`+oLowest + `</td> <td class="table-cell">`+ bLowest+ `</td> <td class="table-cell">`+ sLowest+ `</td>

este es el código para obtener la cantidad más baja y ¿debería agregar la moneda aquí o verificar después?

 for (let p = 0; p < element.availableCategories.length; p++) { let category = element.availableCategories[p]; console.log(category); if(category.cabinCategory.description.includes("BALCONY") && (category.price.total < bLowest || bLowest=== "-")){ bLowest = category.price.total; } if(category.cabinCategory.description.includes("PALACE") && (category.price.total < sLowest || sLowest=== "-")){ sLowest = category.price.total; } if(category.cabinCategory.description.includes("OCEANVIEW") && (category.price.total < oLowest || oLowest=== "-")){ oLowest = category.price.total; } if(category.cabinCategory.description.includes("INTERIOR") && (category.price.total < iLowest || iLowest=== "-")){ iLowest = category.price.total; } }
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!