Convert a Boolean to a String : codewars javascript

front·2022년 11월 9일

kata

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

Note: Only valid inputs will be given.

my answer

function booleanToString(b){
  //your code here
  return b.toString();
}

best answer

function booleanToString(b){
  return b.toString();
}
profile
그냥 하기

0개의 댓글