title: How can i output a string next to the result of an object
body: <p>i have an object </p>
  
  <pre><code>var a = {
   type: '{type}'
  }
  </code></pre>
  
  <p>i have written code to get the 'type' property of an object and display it. the output is correct but now i want to add a string before printing the output.</p>
  
  <p>right now the output is:   sarah</p>
  
  <p>I want the output to have a "name:" before it so the output becomes: "name: sarah"</p>
  
  <p>how can i do this? Thanks in advance.</p>