Dvole
Dvole

Reputation: 5795

Why some strings are shown with quotes in array and some without?

I have an array of strings but somehow when I log them some of them are in parenthesis and some are not.

Here is what I get when I log the array:

2013-12-21 21:01:00.756 bit[1910:907] Array after adding: (
    ash,
    "charline_de_luca",
    "chiara_ferragni"
)

Why first string is without quotes? I log them before adding to array and they are without quotes when I log them.

Upvotes: 3

Views: 109

Answers (1)

Léo Natan
Léo Natan

Reputation: 57040

Strings containing only alpha-numeric character are displayed without quotes.

Upvotes: 7

Related Questions