title: how to call to a specific cookie in JS
body: <p>How do i do this, W3Schools is not helpful here is my code</p>
  
  <pre><code>document.cookie="krul=1";
  var x = document.cookie;
  if(x == 1){
      document.getElementById("krul").src="https://www.youtube.com/v/An9M93j2XUs?version=3&amp;loop=1&amp;playlist=An9M93j2XUs&amp;autoplay=1";
  }
  </code></pre>
  
  <p>I created a cookie kruuuul=1 
  then I try assingning it to x and comparing it in a if statement.</p>