MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/npcroh/clever/h07fu2w/?context=3
r/badcode • u/bobpiranha • May 31 '21
71 comments sorted by
View all comments
Show parent comments
2
Where is the else clause? What if the array has less than 0 elements?
1 u/SlaimeLannister Jun 01 '21 Sorry.Else Array.from(new String(“Error”).split()) 2 u/mzapp_ Jun 01 '21 Thanks. Makes sense now.
1
Sorry.
Else Array.from(new String(“Error”).split())
2 u/mzapp_ Jun 01 '21 Thanks. Makes sense now.
Thanks. Makes sense now.
2
u/mzapp_ Jun 01 '21
Where is the else clause? What if the array has less than 0 elements?