Return to Snippet

Revision: 80646
at March 23, 2020 17:34 by chrisaiv

Updated URL

Updated Code

Updated Description

Revision: 68103
at November 27, 2014 04:45 by chrisaiv

Initial Code
//Type: Object. 
function setData( d ) { 
	var data = d; 
	getData = function() { 
		return data; 

//Type: String.  
function setSection( d ){
	var data = d;
	getSection = function(){
		return data;

Initial URL

Initial Description
It's not a good idea to create global variables unless you do something like this.  From here, all you need to do is setData(YOUR_DATA) and getData()['key']

Initial Title
Proper Global Variables

Initial Tags

Initial Language