Javascript Boolean Variable Types

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

While making decisions we generally need some logic values. Logic values are generally true and false . In Javascript these values are called as Boolean type. Boolean type variables holds logic values true and false. This type is simpler against string and number.

  • open variable is boolean type and hold value true.

Convert To The String

Boolean values can be converted to the string like below.

  • open holds true value
  • toString will convert boolean true to string.

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM
LEARN MORE  Memcached Prepend Operation with Python Example

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)