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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.