How to create a template string to output object contents ? : <p>I have array of objects like this:</p>

<pre><code>var students = [
  { 
    name : "Mike",
    track: "track-a",
    points : 40,
  },

  { 
    name : "james",
    track: "track-a",
    points : 61,
  },  
]

  students.forEach(myFunction);

function myFunction (item, index) {

  for( var key in item ) {
    console.log(item[key])
  }
}
</code></pre>

<p>I want to output strings inside a div like this. 
If points > 50 I print pass otherwise I print failed then the name and track like this</p>

<pre><code>Failed: Mike in track track-a
Passed: james in track track-1
</code></pre>

<p>How I can build a template string like this ?</p>
