title: How can i use destructuring to obtain the target property of a parameter
body: <p>I'm currently taking a test and the problem goes like this - Create <strong>detectCardType</strong>, <strong>validateCardExpiryDate</strong>, and <strong>validateCardHolderName</strong> functions. Each should take in a parameter and use object de-structuring to obtain the target property of the parameter.</p>
  
  <p>This is what i have tried. I tried combining the arrow function but i don 't know how to go about to destructuring thing.</p>
  
  <pre><code>        const {target} = a;
        }
        const validateCardExpiryDate = ({b}) =&gt; {
          const {target} = b;
        }
        const validateCardHolderName = ({c}) =&gt; {
          const {target} = c;
        }
  </code></pre>
  
  <p>I keep getting
  <code>You have not declared detectCardType as specified</code></p>