title: Using JavaScript to display Laravel's Variable
body: <p>In my code I am using <a href="https://twitter.github.io/typeahead.js/examples/" rel="noreferrer">typeahead.js</a>. I use Laravel 5 and I need to replace the <code>var states</code> with my <code>{{ $jobs }}</code> variable. I need to list all Job Titles as an array.</p>
  
  <p>In my controller I have</p>
  
  <pre><code>$jobs = Job::all(['job_title']);
  </code></pre>
  
  <p>I know the loop method in javascript but I dont know how to "link" my blade's variable in the javascript. Anyone knows how to?</p>
  
  <p>I have tried, in my.js</p>
  
  <pre><code>var jobs = {{ $jobs }}
  </code></pre>
  
  <p>But that wont work.</p>