Home  >  Article  >  Web Front-end  >  The role of Javascript!!_javascript skills

The role of Javascript!!_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:57:56956browse

var wintype = !!os[1];

takes the Boolean value of the variable,
should be equivalent to var wintype = os[1]?true:false,
but is obviously much simpler.

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