title: Error **Uncaught TypeError: Cannot read property 'noun' of undefined** while fetching data from json
body: <p>I am trying to fetch data from url, but I am facing an error </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'noun' of undefined**, </p>
  </blockquote>
  
  <p>Can anyone tell me why this error is appearing?</p>
  
  <p><a href="https://codepen.io/Thakur92411/pen/bZMObY?editors=1011" rel="nofollow noreferrer">https://codepen.io/Thakur92411/pen/bZMObY?editors=1011</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var googlelink = "https://googledictionaryapi.eu-gb.mybluemix.net/?define=apple&amp;lang=en";
  
  $.getJSON(googlelink, linkdata);
  
  function linkdata(worddata) {
    console.log(worddata.meaning.noun.defination[0])
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>