Answers for "function returning boolean value in js"

0

javascript function return boolean

function  func(){
  return true;
}

isBool = func();
console.log(typeof (isBool));   // output - string


let isBool = func();
console.log(typeof (isBool));   // output - boolean
Posted by: Guest on June-28-2020

Code answers related to "function returning boolean value in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language