JSFiddle - React, Tailwind, and code Playground

by Andrew Lyndem

JavaScript

function climb(a,b){

  //CODE HERE - DO NOT TOUCH THE CODE ABOVE!

  if(a){
    if(b==false || (typeof(b) != typeof(true))){
      return "On belay?";
    } else { 
      return "Climbing!";
    }
  } else {
    return "Let's set up the belay rope before we climb.";
  }
}

alert(climb("any string here"));