text: //? https://viacep.com.br/ws/${cep}/json/;
  
  const formulario = document.getElementById('formulario');
  const verificar = formulario.elements.verificar;
  
  verificar.addEventListener('click',buscaCep);
  
  function buscaCep(event){
      event.preventDefault();
      const cep = formulario.elements.cep.value;
      const endereco = fetch(`https://viacep.com.br/ws/${cep}/json/`);
  
      endereco.then(response => response.json())
          .then(body => {
              spanCep.textContent = body.cep;
              spanRua.textContent = body.logradouro;
              spanBairro.textContent = body.bairro;
              spanCidade.textContent = body.localidade;
              spanEstado.textContent = body.uf;
          })
  }
  
  
  
  
  //? https://blockchain.info/ticker;
  
  function fetchBTC() {
       fetch(`https://blockchain.info/ticker`)
  
          .then(response => response.json())
          .then(body => {
              precoBTC.textContent = body.BRL.buy;
          })
  }
  
  // setInterval(fetchBTC,10000);
  
  fetchBTC();
  
  
  
  //? https://api.chucknorris.io/jokes/random;
  
  function getPiada(){
      fetch(`https://api.chucknorris.io/jokes/random`)
      .then(response => response.json())
      .then(body => {
          piada.textContent = body.value;
      })
  }
  
  getPiada();
  
  