title: Calling a function from another function Jquery
body: <p>I'm working on a website for kids where they can play a simple Higher-Lower game with cards programmed in Jquery. I'm stuck on one particular part of my code though. I could fix it by writing a mass of double code, but there has to be a more efficient way to do it.</p>
  
  <p>Edit: So the real question is, how do I call one function from another? Like a method.</p>
  
  <p>I want to call my Kaartgenereren function from my Hoger() function.</p>
  
  <pre><code>function KaartGenereren() {...}
  </code></pre>
  
  <p>This is how I tried to call the function:</p>
  
  <pre><code>function Hoger(){
                  oudekaart = kaartnummer;
  
                  do{
                      $.Kaartgenereren(); ...}while(...)}
  </code></pre>
  
  <p>I've also tried it without the $. and the (), but it led to no result.</p>
  
  <p>I hope someone will be able to help me.
  Thanks in advance!</p>