Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

First time posting. =).

x_c_x

Coder
Hi. I was searching for a 'general programming' thread but gave up after viewing about 10 results and the countless more that followed. I'd like to ask if anyone knows of an effective source for understanding variables. Doh! I know right; variables! Lol. I suck at these! I can't seem to grasp the when/where to use them either as introductory in a program (starting at top) or during/middle of. I think I've understood the 'data containers aspect'. But, I can't seem to understand when/where to write them. I've tried dozens of tutorials from vids to articles and I can't transfer it over to my code. Lol. Particularly in JS, Python. Any help, please? And if this is in wrong section advise also! Happy coding! Thanks! =).
 
Hi. I was searching for a 'general programming' thread but gave up after viewing about 10 results and the countless more that followed. I'd like to ask if anyone knows of an effective source for understanding variables. Doh! I know right; variables! Lol. I suck at these! I can't seem to grasp the when/where to use them either as introductory in a program (starting at top) or during/middle of. I think I've understood the 'data containers aspect'. But, I can't seem to understand when/where to write them. I've tried dozens of tutorials from vids to articles and I can't transfer it over to my code. Lol. Particularly in JS, Python. Any help, please? And if this is in wrong section advise also! Happy coding! Thanks! =).
Hi there,
Best way to describe variables: if you need to store data for later use, use a variable...if you need to maths, use a variable... if you need to loop through something, variables are your bestest friends :)
 
This sentence
I can't seem to grasp the when/where to use them either as introductory in a program (starting at top) or during/middle of
makes me think you are in doubt where in your code to declare variables. Is that right ? We can discuss that. Or is there something fundamental about variables you don't get ? I would assume you have been exposed to some maths at school, if so, were you comfortable with using variables like x, y, i, etc... ?
 
makes me think you are in doubt where in your code to declare variables. Is that right ? We can discuss that. Or is there something fundamental about variables you don't get ? I would assume you have been exposed to some maths at school, if so, were you comfortable with using variables like x, y, i, etc... ?

Hi there. I think declaration is part of my misunderstanding. But, I think I've understood declarations on top (to initialize a program) and value assignments. I think I've also understood declaration and parameters followed by variable usage and arguments. I seem to get lost in putting the logic together (syntactical structure of programs), and this results in code running but doing nothing and not generating errors either. Lol. I'll try some JS sample code in another reply for a visual. =).

Thank you both! =).
 
Last edited by a moderator:
Is there a thread to discuss programming concepts, do's/dont's, snippets, the like? Javascript in particular. Thanks! =).
 
Is there a thread to discuss programming concepts, do's/dont's, snippets, the like? Javascript in particular. Thanks! =).
You're in luck lol

Feel free to start your own thread under there whenever you need help with a bug, advice, or overall seeking knowledge of js in particular. Don't worry if you don't get an answer right away. Just give it a few minutes if you see people online, or if you're the only one online, give it an hour or two lol. People here are usually pretty good at responding within a decent timeframe.
 
Welcome to Code Forum! It seems like you got your question answered already, but if you still have any more, please feel free to ask. :)

How long have you been developing, if I may ask?
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom