Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ng12
· 9y ago · 0 comments
How is that more readable? Furthermore, does that break at runtime if listItem is undefined or you typo'd the second num? JSX would catch it as a syntax error.
Comments
[–]
yev
9y ago
Do you need the whole text of an error or answer "yes" will satisfy you ? :)
[–]
ng12
OP
9y ago
Yeah, runtime errors are bad. I don't know why you'd want to inject a string-based language inside JS.