title: The difference between scala script and application
body: <p>What is the difference between a scala script and scala application? Please provide an example</p>
  
  <p>The book I am reading says that a script must always end in a result expression whereas the application ends in a definition. Unfortunately no clear example is shown.</p>
  
  <p>Please help clarify this for me</p>