Posts by user140613 • 101 points
2 posts
-
3
votes2
answers92
viewsA: Does Javascript have the equivalent of Python’s list comprehension?
What was done in Python is called list comprehension. This syntax does not exist in Javascript, but you can get similar results with methods like map, filter and reduce, although "elegant" is…
-
4
votes1
answer452
viewsA: Javascript filter
You are using indexOf(' '+texto.toUpperCase()), but why the space before the text? Note that your HTML is indented with spaces on the first and second lines, but the third line is indented with a…