Conditional statements
if ( bollean true ) {
// Statement
}
if ( 2 > 1 ) {
console.log("Hello World")
}
if ( 2 + 1 ) {
// Statement
}
False Rules
- 0
- false
- null, NaN, underfined
- Empty String
- Empty Array
- Empty Object
Conditional statements in php login functions
var login = true;
if ( true == login ) {
console.log("Show Newfeed")
} else {
console.log("Show Login")
}
var is_logged_in = true;
var lock = true;
if ( is_logged_in ) {
console.log("Show Newfeed");
} else if( lock ) {
console.log( "Your account is locked!" );
} else {
console.log("Show Login");
}
For Looping
for ( var x = 10; x >= 1; x-- ) {
console.log( x );
}
Booleans
Bollean AND &&
2 > 1 && 5 > 9
2 > 1 && 5 > 1
2 > 1 && 5 > 1 && 3 > 1
2 > 1 && 5 >1 && 3 > 1 && 1 == 1
2 > 1 && 5 > 1 && 3 > 1 && 1 == 4
Talk is Cheap ! Show me the Code
Linus Torvalds
OR gate
true or true = true
false or true = true
false or false = false
ASCII
065 + 10
//63
Dont Drink and Root ๐
Sharing is Caring
i need this drink code๐ ๐
Good
Very good.
แแฝแฑแทแแฎ๐
๐๐ป๐๐ป๐๐ป๐๐ป๐๐ป
๐๐๐
Don’t drink and get drunk
๐๐๐
Thanks โค๏ธ
Nice article
Nice
Nani I love this site๐ณ๐ฌ