function checkCookie() {
  let user = getCookie("streak");
  if (user != "") {
    document.getElementById('streak').innerHTML = `Your streak: ${user}🔥`;
  } else {
    setCookie('streak', '0', 1)
    document.getElementById('streak').innerHTML = `Your streak: 0🔥`;
  }
}
// Check if streak exists, if so, set the text on screen
Check if streak exists, if so, set the text on screen
Check if streak exists if so set the text on screen
function checkCookie() {
  let user = getCookie("streak");
  if (user != "") {
    document.getElementById('streak').innerHTML = `Your streak: ${user}🔥`;
  } else {
    setCookie('streak', '0', 1)
    document.getElementById('streak').innerHTML = `Your streak: 0🔥`;
  }
}
function checkCookie ( ) { let user = getCookie ( "streak" ) ; if ( user != "" ) { document . getElementById ( 'streak' ) . innerHTML = ` ${ user } } else { setCookie ( 'streak' , '0' , 1 ) document . getElementById ( 'streak' ) . innerHTML = ` } }
Check if streak exists, if so, set the text on screen
Check if streak exists if so set the text on screen