title: return type of the variable in Scala
body: <p>How can i see type of the variable in Scala?</p>
  
  <p>I have tried to do this like that:</p>
  
  <pre><code>val x = 10
  println(type(x))
  </code></pre>
  
  <p>or</p>
  
  <pre><code>val x = 'Hello!'
  println(x.type)
  </code></pre>
  
  <p>Bun unfortunately in both of these ways i have an error. </p>