why is not roblox

comments (single view)

function isNotRoblox(roblox){
  return roblox ? false : true;
}

ik how to refactor that code to make it better

function isNotRoblox(roblox){
  if(roblox == true) {
    return true
  }
  if((roblox == true) == false){
    return false
  }
  return true
}
export default async function isNotRoblox(){
  let roblox = await fetch('https://roblox.com');
  roblox = await roblox.catch(error => return false);
  roblox = roblox ? true : false;
  return new Promise( async (res, reg) => {
    if (roblox == true){
      return res(true);
    } else if (roblox == false){
      await res(false);
      return reg({ ok: false });
    };
  });
};
export default async function isNotRoblox(){
  let roblox = await fetch('https://roblox.com');
  roblox = await roblox.catch(error => return false);
  roblox = roblox ? true : false;
  return new Promise( async (res, reg) => {
    let ret = isNotTrue(roblox)
    if(ret.toStirng() == 'true'){
     return true}else{
return false}
  });
};

function isNotTrue(val){
  if(val && (val && val){
    return opposite(val)
}else{
    return false
}
}

function opposite(val){
  if(val){
    return false
  }else {
    return opposite(val)
  }
}

no need to tahnk me

what have i done

View all comments