Hello everyone!
I am kind a new here and trying to learn Swift.
I am getting this error "Expressions are not allowed at the top level"
I´ve tried both with an function and without function!
func text(){ let number = 120 print(number.isMultiple(of: 3)) } text() Without function
let number = 120
print(number.isMultiple(of: 3))
I really appreaciate if you can help me out!
My playground app is crashing every time I open it so I´ve got no other choice but to use Xcode
Kind regarding Your noob friend!