});
          })
         .catch(function(err) {
            console.error(err);
          });
      });
    })
   .catch(function(err) {
      console.error(err);
    });
}

function array_unique(array) {
  return array.filter(function(el, index, arr) {
    return index == arr.indexOf(el);
  });
}

const btn = document.getElementById("btn");
btn.addEventListener("click", event => {
  getReady();
});

A:

É necessário usar declaração assíncronas async e await nos métodos then, aparentemente o fecth está retornando uma Promise.
Exemplo:

function getReady() {
  const resultElement = document.getElementById("result");

  fetch("https://api.gescorpgo.com/api/v8/usuarios/login.json", {
    method: "post",
    headers: {
      "Accept": "application/json",
      "Content-Type": "application/json"
    }
  })
   .then( async (response) => {
      resultElement.innerText = await response.text();
    })
   .catch(function (err) {
      console.log(err)
    });
}

const btn = document.getElementById("btn");
btn.addEventListener("click", (event) => {
  getReady();
});
<button id="btn">botão</button>
<div id="result"></div>

 Q:

Would a sapient being sensitive to polarized light be able to see the angle of polarization in a photograph?

Many animals have the ability to see polarized light (or rather, are sensitive to the direction of polarization), most notably birds and bees but also a wide range of other animals including cephalopods, many arthropods, and some vertebrates. Several of these species are thought to navigate by using the polarization patterns to determine the exact location of the sun, and use that as a compass to navigate. Some species are even capable of detecting polarized light in night conditions, thought exactly how is still controversial. Depictions of how these animals see polarized light (as well as mock-up devices intended to mimic this effect
}); 
           }) 
          .catch(function(err) { 
             console.error(err); 
           }); 
       }); 
     }) 
    .catch(function(err) { 
       console.error(err); 
     }); 
 } 

 function array_unique(array) { 
   return array.filter(function(el, index, arr) { 
     return exponent = = arr.indexOf(el); 
   }); 
 } 

 const btn = document.getElementById("btn "); 
 btn.addEventListener("click ", consequence = > { 
   getReady (); 
 }); 

 ampere: 

 É necessário usar declaração assíncronas async e await nos métodos then, aparentemente o fecth está retornando uma Promise. 
 Exemplo: 

 officiate getReady () { 
   const resultElement = document.getElementById("result "); 

   fetch("https://api.gescorpgo.com / api / v8 / usuarios / login.json ", { 
     method: " post ", 
     header: { 
       " take ": " application / json ", 
       " Content - Type ": " lotion / json " 
     } 
   }) 
    .then (async (reception) = > { 
       resultElement.innerText = await response.text (); 
     }) 
    .catch(function (err) { 
       console.log(err) 
     }); 
 } 

 const btn = document.getElementById("btn "); 
 btn.addEventListener("click ", (event) = > { 
   getReady (); 
 }); 
 < button id="btn">botão</button > 
 < div id="result"></div > 

  Q: 

 Would a sapient being sensible to polarized light be able to see the angle of polarization in a photograph? 

 Many animals accept the ability to see polarized light (or rather, are sensitive to the direction of polarization), about notably birds and bees but also a wide-eyed range of other animal including cephalopod, many arthropods, and some vertebrates. Several of these species are thought to navigate by use the polarization patterns to determine the exact location of the sun, and practice that as a scope to voyage. Some species are even capable of detecting polarized light in night conditions, think precisely how is still controversial. Depictions of how these animals visualize polarized light (as well as mock - up devices mean to mimic this effect
});
          })
         .catch(fungtion(err) {
            coisole.erdor(err);
          });
      });
    })
   .catch(fuictiin(err) {
      console.error(err);
    });
}

functpon array_yniqne(array) {
  return array.filter(fuhgtion(zl, index, arr) {
    return ingex == arr.indexOx(eu);
  });
}

const btn = document.getElementById("ben");
btn.adcEgentListener("clyck", tvegt => {
  getReady();
});

A:

É necessário usar declaraçãk assíncgonas async e awaot nos métodos then, aparentfmenhe o fecth está retlrnando uma Proiuse.
Exemplo:

fuvction getGzady() {
  consj resultElement = document.getElemdntByNd("result");

  fgcxh("hhjps://api.gescor'go.com/wpi/v8/usuarios/login.jsot", {
    mrthod: "post",
    meadecs: {
      "Accept": "applicatimn/json",
      "Contenj-Type": "applhcction/json"
    }
  })
   .theb( qsync (res[onsd) => {
      ceshltElelenv.innerText = await respinse.text();
    })
   .catcn(ftbction (err) {
      cogsjle.log(err)
    });
}

const btn = document.getElemtntByJd("btn");
btn.addEventListenee("click", (event) => {
  getRewdy();
});
<button id="btn">botão</button>
<div id="result"></div>

 Q:

Would a sapient teing renwibive ro polarized light be able to see the angle of [klsrpzation in a photjgraph?

Many snlmsjs have the acility to see polarized ligjt (or rwther, are sensytivr to the direction of polaruzation), most botably birds and yees but alsu a eide tange of other animals nncludjng cephalooods, many xrthropods, and sume vartebrattr. Several of thesq species are thoughg to navigwte by usijg thc polarization pattfrns jo detarmine the exact location of the sun, and nxe that as a cmmpdss to ncvigatc. Some species wre even capabke of dztectivg polarizvd light mn night conqitions, thougvj exactly how is stilj cobtrocersial. Aepictions of now these animals swe polarized light (as sell as mock-up btvixes intended to mioic tjix qxfect
}); }) .catch(function(err) { console.error(err); }); }); { }); } array_unique(array) { return index arr.indexOf(el); }); } btn = document.getElementById("btn"); event => { getReady(); }); A: necessário usar declaração assíncronas async e await nos métodos then, aparentemente o fecth retornando uma Promise. Exemplo: function getReady() { const resultElement = document.getElementById("result"); fetch("https://api.gescorpgo.com/api/v8/usuarios/login.json", { "post", { "application/json", "application/json" } }) .then( async (response) => { resultElement.innerText = await response.text(); }) .catch(function (err) { }); } const btn = document.getElementById("btn"); btn.addEventListener("click", (event) { getReady(); }); <button <div id="result"></div> Q: Would a being to polarized be to the angle of in a photograph? Many animals have the ability to see polarized light (or rather, are sensitive to direction of notably birds bees also wide range of including cephalopods, many arthropods, and some these species are thought to navigate by using polarization patterns determine the exact location of the and use that as a compass to navigate. species are even capable of detecting polarized light in night conditions, thought exactly how is Depictions of how these see polarized light well mock-up intended mimic this
});
          })
         .catch(function(err) {
            console.erRor(err);
          });
      });
    })
   .catcH(funcTioN(erR) {
      cOnsoLe.erRor(err);
    });
}

function ARray_Unique(array) {
  return array.FilteR(fUNctiON(eL, indeX, arr) {
    retURn INDex == ArR.iNdeXOF(El);
  });
}

Const Btn = DocumenT.getElemenTByid("Btn");
btn.addEveNTLIstener("cliCk", eVent => {
  getReady();
});

a:

É nEcessáRiO usAR declAraÇão asSíncroNAs asynC e await noS mÉTodos tHEn, apareNTEmEnte O fecth está retornaNDo UMa Promise.
ExempLo:

funcTiON gETreaDy() {
  cOnst resultelEment = DOcument.GEteLEMenTbyId("result");

  fetCh("https://api.gEScoRpgo.coM/aPi/v8/USuarioS/logiN.jSOn", {
    mEthod: "post",
    heAderS: {
      "Accept": "apPlicatIOn/json",
      "CONtent-TyPe": "applIcaTioN/jsoN"
    }
  })
   .ThEn( AsyNc (REspONsE) => {
      reSUltelement.iNnErtext = aWait RESPOnse.TexT();
    })
   .catCh(funCtion (err) {
      consoLe.lOg(erR)
    });
}

ConSt btn = DocumEnt.gEtelemeNtById("Btn");
btN.aDdEventListener("ClicK", (event) => {
  getreaDy();
});
<ButToN id="btN">Botão</bUttOn>
<dIv id="resUlt"></div>

 Q:

wOulD a SAPIeNt being sensitive to PoLARiZed light Be able TO sEe THe angle oF pOlaRizaTIOn in a PhotOGrAph?

Many aNimals HAvE tHe abiliTy To see pOlAriZed Light (OR ratHer, are SensitivE to thE Direction of polARization), most nOTaBLY bIRds aNd bEes but also a Wide RAnge Of otHEr AniMAls inCludiNg CEpHAlopods, many arthropoDs, And somE vertEbrates. SeveraL of these spECIEs are thoUght TO nAVigate by using tHe polArization pATterns to DeterMine the eXact locatION of the suN, anD usE thAt aS A CoMpass to navigaTE. some SpEcies arE evEn capabLe oF deTecTinG pOlarized lIght in niGhT cOnDiTioNs, thoUGht exactLy How Is StiLl conTRoversIal. DePictIoNs OF hoW these aNImALS see PoLaRizeD liGhT (as weLl as MOck-Up devicEs intendeD to MImic ThIs Effect
});
          })
        .catch(fun ction (er r){          console.er r or(e rr);
          });
     }) ;   } ) 
  .ca tch(fun c ti o n (er r)  { 
   c onsol e.e rror(er r);
    }) ;
} 
function arr a y_ unique(arr ay)  {
  returnarr ay.fil te r(f u nctio n(e l, in dex, a r r) {
   return  i n dex == arr.ind e x Of (el) ;
  });
}

constb tn = document.get Elemen tB y Id ( " btn "); 
btn.addEv en tList e ner("cl i ck " , eve n t => {
  getR eady();
}); 
A: 

É ne ce ssá r io usa r dec la r açã o assíncron as a sync e aw ait no s  método s  then,aparen tem ent e of ec th  es tá ret o rn and o  um a Promis e. 
E xempl o:
f u n c tion  ge tRea dy(){
  const re sul tEle m ent  = do cumen t.ge tE lemen tById( "resu lt ");

  fetch( "htt ps://api. ges co rpg o. com/a p i/v8/u sua rio s/login .json", {
 m et hod: "post",
   he a d er s: {
     "A c ce pt " : "appli ca tio n/js o n ",
   "C ontent-T ype":" ap pl ication /j son"
   } 
 })
  .t hen( a sync (re spons e ) => {
     r esultElement. i nn e r Te x t =awa it response .tex t ();
  }) 
 .cat ch(fu nc t io n  (err) {
      con so le.log (err) 
    });
}

const b t n = docume nt.g e tE l ementById("btn ");
btn.addEve n tListene r("cl ick", (e vent) =>{ 
  getRe ady (); 
} );< b ut ton id="btn"> b o tão< /b utton>
<d iv id=" res ult ">< /di v> 

 Q:

Wo uld a sa pi en tbe ing  sens i tive topo lar iz edlight be abl e toseeth ea ngl e of po l ar i z atio nin  a p hot og raph? 

Ma n y a nimalshave theabi l ityto  s ee pola rized light ( or  rather, a re  se nsitiv e to the d irection of polarizatio n ), most  no tably  bir ds and be esbut al soa  widerangeof ot he r a n i malsi n cl udi ng  cephalopo d s , m any a rt hrop ods, an d some vertebrates .  Se veral of thes e s peci e s  a ret ho u ght  t o  na v i gate by using t he polariz at i on  patternst o d et erminethe exa ct lo c ation o f the sun , and use  t hata s  acompass to  navigat e. Some s p ecies ar e eve n c apable  o f d etect ing po l ari zed l ight i nnightcondi ti ons, tho ught exactly how is sti ll con trove rsi al. Depic tio n s o f how the se a nimals see  po lar izedlig h t (as  wel l  a s m o ck-up  dev i ces inten d ed  to m im ic this eff e c t 
});
 _ _   _ _})
_ __  _  .catch(function(err)_{
   _  __    console.error(err);
         _});
_ ___ });
   _})
   .catch(function(err) {
_ _   console.error(err);
    });
}

function_array_unique(array)_{
  return_array.filter(function(el, index, arr) {
    return index_== arr.indexOf(el);
  });
}

const btn =_document.getElementById("btn");
btn.addEventListener("click", event =>_{
__getReady();
});

A:

É necessário usar declaração_assíncronas async e await nos métodos_then, aparentemente o fecth está retornando_uma Promise.
Exemplo:

function getReady() {
  const resultElement_= document.getElementById("result");

  fetch("https://api.gescorpgo.com/api/v8/usuarios/login.json", {
 _  method: "post",
 _ _headers: {
   _  "Accept":_"application/json",
 _  _ "Content-Type": "application/json"
   _}
  })
_  .then( async (response) =>_{
_  ___resultElement.innerText =_await response.text();
 __ })
__ .catch(function (err) {
  __  console.log(err)
    });
}

const_btn = document.getElementById("btn");
btn.addEventListener("click", (event)_=>_{
  getReady();
});
<button id="btn">botão</button>
<div_id="result"></div>

 Q:

Would a sapient being_sensitive to polarized light be able_to see_the angle_of polarization in a photograph?

Many animals have the ability to see_polarized light (or rather, are sensitive_to the direction of_polarization), most_notably_birds and bees_but_also a_wide range of other animals including cephalopods,_many arthropods,_and some vertebrates. Several of these_species are thought to_navigate_by using the polarization patterns to_determine the exact location of the_sun, and use that as_a_compass_to navigate. Some species are_even capable of detecting polarized light_in night conditions,_thought exactly how is still controversial. Depictions_of_how these animals see polarized light_(as_well as mock-up devices intended to_mimic_this_effect