+ 2
how to declare var in swift?
what is appropriate form of declaration var? var first-name; ir var first_name and why?
2 Answers
+ 10
var first_name is appropriate, var first-name isn't. Variable names can not have mathematical symbols(like -) and can have underscores(_).
+ 1
u can do it by writing. var a=10;