BLiZZaRD
10-28-2006, 02:16 PM
I have actually sat down and started learning this language. So far it isn't as hard as it first seemed, I actually think I might get a grasp on this!
I don't have any real questions with the lessons yet (I am sure I will when I get into objects and such...)
Anyway I was learning about the way to introduce JS into the page and all that, and the lesson said that semicolons after the ) are optional UNLESS there are more than one item in the string.
My question is, since I am just starting and basically don't have any "bad habits" is it customary to use the semicolon all the time, or just when it is needed?
To me, I would prefer to use them always, but at the same time I don't want to look like a dork when I post code to ask for help, or am actually helping someone else.
I don't have any real questions with the lessons yet (I am sure I will when I get into objects and such...)
Anyway I was learning about the way to introduce JS into the page and all that, and the lesson said that semicolons after the ) are optional UNLESS there are more than one item in the string.
My question is, since I am just starting and basically don't have any "bad habits" is it customary to use the semicolon all the time, or just when it is needed?
To me, I would prefer to use them always, but at the same time I don't want to look like a dork when I post code to ask for help, or am actually helping someone else.