Javascript Boolean Variable Types

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/javascript-boolean-variable-types/
PINTEREST
PINTEREST
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
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/javascript-boolean-variable-types/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  Python JSON Encoder and Decoder Tutorial with Examples

Leave a Reply

Your email address will not be published.