Remove the square braces
Also you have some syntax errors with the statement. ".group .level" is a string and you want to concatenate a variable to it
Y.all(".group" '.level'+[levelnumber])
^ ^ ^ ^ ^
------------------------ Get rid of these
Y.all(".group .level"+ levelnumber)
You generally tend to use []
to access a specific index in Array like objects.