Skip to content

Instantly share code, notes, and snippets.

@videlais
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/75c6b7fc1dbb3b2f403b to your computer and use it in GitHub Desktop.
Save videlais/75c6b7fc1dbb3b2f403b to your computer and use it in GitHub Desktop.
JS Lesson 2
var A = function() {
this.value = 1; //This value is a number
}
var B = function() {
this.value = "Two"; //This value is a String
}
var C = function() {
this.value = {'value': 1}; //This value is an Object
}
var D = function() {
this.value = function(){}; //This value is a function
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment