title: Uncaught TypeError: Cannot read property '0' of undefined CryptoJS
body: <p>I am using CryptoJS and I keep getting Uncaught TypeError.
  Basically, when I try to send the message an encrypt it, that is when I end up getting the error.</p>
  
  <p>The error I am getting is within the cryptoJS package. Line 256 starts at 
  <code>var encrypted = CryptoJS.AES.encrypt(myString, myPassword);</code></p>
  
  <p>I am assuming the issue is within the piece of code I have listed below, or there it is when I have been importing the package.</p>
  
  <p><a href="https://i.stack.imgur.com/SAJVy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SAJVy.png" alt="enter image description here"></a></p>
  
  <pre><code>    var myString = messageInput.value;
      var myPassword = 11111;
      var encrypted = CryptoJS.AES.encrypt(myString, myPassword);
  </code></pre>