Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Types - typeof

  • typeof

  • String

  • Int32

  • Float64

  • Bool

  • p!

  • Literals

name = "Foo Bar"
p! typeof(name) # typeof(name) => String

age = 42
p! typeof(age) # typeof(age) => Int32

pi = 3.14
p! typeof(pi) # typeof(pi) => Float64

yesno = true
p! typeof(yesno) # typeof(yesno) # => Bool