Understood, in case if u want to call in another function day.getFullYear must make new, cuz this is work only in block of function birth, right?
Thank you for advice, I must try do give more descriptive names for var.
The variables will only work in the function/block where they were defined. So if you want to use it somewhere else, you'll need to redefine it or make it global.
I get it, thank you for the explanation you help me a lot. When I get a job, from my first paycheck I will buy you a coffee.
thank you one more time. Cheers!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Understood, in case if u want to call in another function day.getFullYear must make new, cuz this is work only in block of function birth, right?
Thank you for advice, I must try do give more descriptive names for var.
The variables will only work in the function/block where they were defined. So if you want to use it somewhere else, you'll need to redefine it or make it global.
I get it, thank you for the explanation you help me a lot.
When I get a job, from my first paycheck I will buy you a coffee.
thank you one more time. Cheers!