Skip to content

Instantly share code, notes, and snippets.

View zootella's full-sized avatar
🏔️

Kevin Faaborg zootella

🏔️
View GitHub Profile
var color1 = "red";
function set2() {
this["color2"] = "orange";
}
function set3(destination) {
destination["color3"] = "yellow";
}
var color1 = "red";
function set2() {
this["color2"] = "orange";
}
function set3(destination) {
destination["color3"] = "yellow";
}
//make something available to the file from within a function in the file
//make sure it doesn't affect what's available in files that require this one
var color1 = "red";
var color2 = "orange";
//and we want to set two more colors, using the function below
function setColors() {
//make something available to the file from within a function in the file
//make sure it doesn't affect what's available in files that require this one
var color1 = "red";
var color2 = "orange";
//and we want to set two more colors, using the function below
function setColors() {
var extraColors = {color3:"yellow", color4:"green"};