D
darrel
Often, I want to use a string in multiple functions on a page. I can declare
and re-set the string in each function, or I can just delcare the string
outside of the individual functions so that they can all see it.
This works fine.
My question is if there is any reason NOT to go ahead and declare ALL
strings at the top? Is there a performance/memory hit in doing that? Or is
it simply a matter of clean code syntax/layout?
-Darrel
and re-set the string in each function, or I can just delcare the string
outside of the individual functions so that they can all see it.
This works fine.
My question is if there is any reason NOT to go ahead and declare ALL
strings at the top? Is there a performance/memory hit in doing that? Or is
it simply a matter of clean code syntax/layout?
-Darrel