Home >Web Front-end >HTML Tutorial >A question about defining parentheses in js, please help me_html/css_WEB-ITnose

A question about defining parentheses in js, please help me_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:121224browse

This is written in js: var a=("1","2","5",6);
alert(a); The pop-up is 6
I don’t know what the grammatical meaning of this is What? I checked a lot of information and found no similar usage. Seek advice from experts! Thanks! ! !


Reply to discussion (solution)

(,) operator can perform multiple expression operations in one statement and return the value of the last expression to variable a

Oh, I understand, thank you, Brother Mengzi! ! !

The following is the array and the front is the variable value. It must be 6

You can traverse each(function(){
});

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn