Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
khalilch2
· 4y ago · 0 comments
wouldn't the output be ['basic', 'system-admin', 'developer'] rather than array[0] being 'admin'?
Comments
[–]
tzs
4y ago
You are right that it should be 'basic', not 'admin'. But the order should be 'system-admin', 'developer', and finally 'basic'.
[–]
saranshk
4y ago
you are right, I was trying to format it for HN but somehow screwed up copy pasting, though it'd be ["system-admin", "developer", "basic"] and not ['basic', 'system-admin', 'developer']