try catch

a try catch with error output

by Oliver Kelso

JavaScript

var test = "oliver";

try{
  if(test2 && test == "oliver"){
    console.log("true");
  }else{
    console.log("false");
  }
}catch(err){
  throw err.message;
}