Answers for "javascript function return boolean"

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 "javascript function return boolean"

Code answers related to "Javascript"

Browse Popular Code Answers by Language