This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var color1 = "red"; | |
function set2() { | |
this["color2"] = "orange"; | |
} | |
function set3(destination) { | |
destination["color3"] = "yellow"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var color1 = "red"; | |
function set2() { | |
this["color2"] = "orange"; | |
} | |
function set3(destination) { | |
destination["color3"] = "yellow"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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"}; |
NewerOlder