title: Require assistance with coding a word guess game in javascript
body: <p>I'm creating a word guess game which looks like <a href="https://youtu.be/W-IJcC4tYFI" rel="nofollow noreferrer">this</a>.</p>
  
  <p>I have created the bootstrap divs that will hold the info of my code and declared some variables, but I am now stuck.</p>
  
  <p><em>Disclaimer: I am quite new to programming!</em></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Word Guess Game&lt;/title&gt;
    &lt;link rel="stylesheet" type="text/css" href="reset.css"&gt;
    &lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div class="container"&gt;
      &lt;div class="artist row"&gt;
      &lt;/div&gt;
      &lt;div class="gamearea row"&gt;
        &lt;div class="albumarea col-6"&gt;
        &lt;/div&gt;
        &lt;div class="actualgame col-6"&gt;
          &lt;div class="startarea"&gt;
            &lt;p id="start-text"&gt;Press any key to start playing!&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="winsarea"&gt;
            &lt;p id="wins-text"&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="current-wordarea"&gt;
            &lt;p id="currentword-text"&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="remaining-guessesarea"&gt;
            &lt;p id="guessremaining-text"&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="letters-guessedarea"&gt;
            &lt;p id="letterguessed-text"&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="starts"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
      var wins = 0;
      var currentword = 0;
  
      var letter = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
  
      var Word = ["marley", "babyface", "hamilton"];
      var solution = word[Math.floor(Math.random() * word.length)]
      var solutionlength = solution.length;
      var display = [solutionlength];
      var lettersguessed = solution.split("");
      var guessesremaining = 12;
      var output = "";
      var win = solutionlength
      var letterplayed = "";
  
      document.onkeyup = function(event) {
        var userGuess = event.key;
        if () {
  
        }
      };
    &lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>