thisisnuts123 Posted October 16, 2007 Share Posted October 16, 2007 hey how do u assign a global variable in javascript is it same as php? Quote Link to comment https://forums.phpfreaks.com/topic/73558-solved-global-variable-in-javascript/ Share on other sites More sharing options...
BlueSkyIS Posted October 16, 2007 Share Posted October 16, 2007 you don't have to declare a variable as global in Javascript. if you declare it outside of a function, it will be available inside the function. Quote Link to comment https://forums.phpfreaks.com/topic/73558-solved-global-variable-in-javascript/#findComment-371132 Share on other sites More sharing options...
kenrbnsn Posted October 16, 2007 Share Posted October 16, 2007 Moving this to the Javascript section. Quote Link to comment https://forums.phpfreaks.com/topic/73558-solved-global-variable-in-javascript/#findComment-371133 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.