Convert a Boolean to a String - 2

PHOTO EMBED

Sat Apr 30 2022 23:43:56 GMT+0000 (Coordinated Universal Time)

Saved by @Jiahua #javascript

//Implement a function which convert the given boolean value into its string representation.

//Note: Only valid inputs will be given.

function booleanToString(b){
  return b.toString();
}
content_copyCOPY