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

WBOY
Release: 2016-06-24 12:17:12
Original
1196 people have browsed it

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(){
});

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template