Categories
Is it possible to use js children.length in pug?
Hi, I need to compare the number of children in one block and the number of children in another block. Pug accepts the same JS code, how to do it?
Answer the question
In order to leave comments, you need to log in
It depends on your implementation how you add "children", for example, you can do this https://codepen.io/anon/pen/QoyQVY
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question