Boolean

 let age=13;

undefined

let isAdult=false;

undefined

typeof isAdult

'boolean'

age=23;

23

isAdult=true;

true

// IN JS TYPE OF VARIABLE CAN BE CHANGED 

undefined

let a=5;

undefined

typeof a

'number'

a=true;

true

typeof a

'boolean'

Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code