“Vírgula à direita” Respostas de código

Vírgulas à direita

A trailing comma, also known as a dangling or terminal comma, is a comma symbol that is typed after the last item of a list of elements. Since the introduction of the JavaScript language, trailing commas have been legal in array literals. Later, object literals joined arrays.
Scary Skylark

Vírgula à direita

[ "hello", "world" ]
# Out[1]: ['hello', 'world']
[ "hello", "world", ]
# Out[2]: ['hello', 'world']
Phuong Anh Dang

Respostas semelhantes a “Vírgula à direita”

Perguntas semelhantes a “Vírgula à direita”

Procure respostas de código populares por idioma

Procurar outros idiomas de código