Codewars - Convert a Boolean to a String

PHOTO EMBED

Tue Apr 12 2022 11:37:15 GMT+0000 (Coordinated Universal Time)

Saved by @Luduwanda #javascriptreact

//Implement a function which convert the given boolean value into its string representation.
//Note: Only valid inputs will be given.

function booleanToString(b){
  const b = new Boolean(true);
  
console.log(b.toString())
}
content_copyCOPY