A
A
apexlf2017-12-18 20:08:37
HTML
apexlf, 2017-12-18 20:08:37

How can pug/jade make the check loop easier?

Hello, can you tell me how to make this part of the code easier?

- for (var x = 0; x < 5; x++)
  li
    if x < "3"
        button.rating__star.active
    else
        button.rating__star

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question