title: Linear Search using coffee script
body: <p>I was trying to write coffee script for linear search but I was stuck at point where I have to return a value in addition to value at last line.
  Here is my code snippet:</p>
  
  <pre><code>Linear_Search = (array, desired) -&gt;
      for x in array
          do -&gt;
              if x is desired
                  return true
      false
  
  array = [2, 4, 6, 7, 3, 1, 5]
  
  if Linear_Search(array, 4)
      console.log("Found")
  else
      console.log("Not Found")
  
  if Linear_Search(array, 9)
      console.log("Found")
  else
      console.log("Not Found")
  </code></pre>
  
  <p>After running this script I got answer to be</p>
  
  <p><code>
  "Not Found"
  "Not Found"
  </code></p>
  
  <p>I have tried various things like removing return keyword. But they does not seem to be working. Help me out to learn this awesome technology.</p>
  
  <p><a href="https://repl.it/C99P" rel="nofollow noreferrer">Compile Online</a></p>