boolean - javascript, what this condition means? if(display || true){...} -


the display variable optional on actual function, don't understand means || true

what checks condition? if(display || true){...}

if(display || true){ $("#container").html(this.displayreport(this.tabdata, extrainfo || false)); } 

the || logical or operation, means display or true true.

your code means if(true) {...}, , if quite redundant.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -