Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

truty values in javascript

/*
1. the Boolean value false
2. the null type
3. the undefined type
4. the number 0
5. the empty string ""
6. the odd value NaN (stands for "not a number", check out the NaN MDN article)
That's only!
*/
if("") {
    console.log("Truty");
}else
{
    console.log("Falsy"); //Will be excuted
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: redux counter 
Javascript :: js get each pair of values from an array 
Javascript :: javascript class prototype 
Javascript :: nestjs optional guard 
Javascript :: Fromdata 
Javascript :: how to create image object in javascript 
Javascript :: clear input field javascript 
Javascript :: returns string of names, seperated by commas and an ampersand namesObj in javascript 
Javascript :: javascript trim content to length without word cutting 
Javascript :: loopover iterate elements by name js 
Javascript :: throttle ajax requests 
Javascript :: know if a gridview is empty from javascript 
Javascript :: desc sorting in array of objects javascript 
Javascript :: what is fn extend 
Javascript :: child to perent data transfer in angular 
Javascript :: inherit mdn 
Javascript :: when i add data into the input it disappeared in react 
Javascript :: javascript border textbox 
Javascript :: how to difference of arrey object 
Javascript :: How to Define a Function using Function Declaration in javascript 
Javascript :: jquery remove array of classes 
Javascript :: Backbone Model Vs Backbone Collection 
Javascript :: Will Yield An Object 
Javascript :: how to Play/start or pause timer in javascript 
Javascript :: _.template Underscore Example 
Javascript :: Colored tab in react Js MUI 
Javascript :: make navigation open when items are active 
Javascript :: regexp look for letter followed by 3 digits 
Javascript :: node package manager 
Javascript :: django ajax json data become string 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =