Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

&& condition in javascript


//one way condition
x=2
x === 3 && console.log("i am 3");

this will not output because of x equal 2. This is work when correct;

if(x===3){
	console.log("i am 3")
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #condition #javascript
ADD COMMENT
Topic
Name
1+8 =