Javascript Tutorial Boolean

Basic

  1. Add function to buildin type in JavaScript
  2. Use and operator to calculate boolean value from boolean object and boolean literal in JavaScript
  3. Use if statement and Boolean conversion at the same time in JavaScript

Convert

  1. Check the difference between Boolean Object Verses Primitive Boolean Value in JavaScript
  2. Convert Boolean to string in JavaScript
  3. Convert a empty string to Boolean type in JavaScript
  4. Convert a nonempty string to Boolean type in JavaScript
  5. Convert boolean to string by calling its toString method in JavaScript
  6. Convert undefined to boolean value with Boolean in JavaScript
  7. Converts a non-zero value to Boolean type in JavaScript
  8. Converts a zero value to Boolean type in JavaScript
  9. Get the Boolean value contained in the Boolean object using Boolean.valueOf() in JavaScript

Create

  1. Create Boolean Object from boolean literal in JavaScript
  2. Create boolean from null in JavaScript
  3. Create boolean from object in JavaScript
  4. Create two boolean type variables in JavaScript
  5. Use boolean literal true and false to create boolean variable in JavaScript
  6. Use false to create boolean variable in JavaScript