Present in both answers;Present only in the new answer;Present only in the old answer;
> You can check with this value is present or not. if(value){ // True Condition }else{ // False Condition } Above code will evaluate to true if value is not: 1. null 2. undefined 3. NaN 4. empty string ("") 5. 0 6. false
> You can check with this value is present or not. if(value){ // True Condition }else{ // False Condition } Above code will evaluate to true if value is not: 1. null 2. undefined 3. NaN 4. empty string ("") 5. 0 6. false
Present in both answers;Present only in the new answer;Present only in the old answer;