This file contains hidden or 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
Es una p ́ | |
agina web en la que los estudiantes pueden explorar los archivos de | |
varios “casos hist ́ | |
oricos”, luego de leer cartas, ver fotograf ́ıas, y explorar todo | |
tipo de “evidencias”, deber ́ | |
an responder a varias preguntas planteadas, respecto | |
al contexto, sucesos y modo de vida de la ́epoca. | |
Las respuestas a estas preguntas no siempre ser ́an obvias, muchas veces | |
estar ́ | |
an ocultas impl ́ıcitamente en detalles que podr ́ıan pasar desapercibidos por |
This file contains hidden or 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
$( 'body' ).append($('<div>').load('lol.html')); |
This file contains hidden or 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 a = (function () { | |
// "this" se refiere a la función instantánea anónima | |
this.x = 100; | |
var a = 1; | |
var showX = function () { | |
// el valor de "this" depende de quién | |
// invoque a esta función | |
console.log(this.x); | |
}; |
This file contains hidden or 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
console.log(dog.nombre) // undefined | |
with (dog) { | |
try { | |
console.log(nombre) // error | |
} catch(error) { | |
console.log('nombre is not defined even inside the with (dog)'); | |
} | |
} |
This file contains hidden or 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 dog = (function () { | |
// execution context: dog's module | |
var nombre = "dog"; | |
var setName = function (newName) { | |
nombre = newName; | |
}; | |
var speak = function () { | |
console.log('[' + nombre + ']: woof!'); |
This file contains hidden or 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 nombre; | |
function setName; | |
function speak; |
This file contains hidden or 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 dog = (function () { | |
var nombre = "dog"; | |
var setName = function (newName) { | |
nombre = newName; | |
}; | |
var speak = function () { | |
console.log('[' + nombre + ']: woof!'); | |
}; |
This file contains hidden or 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 a = (function () { | |
this.x = 100; | |
var a = 1; | |
var showX = function () { | |
console.log(this.x); | |
}; | |
var setX = function () { | |
this.x = -100; |
This file contains hidden or 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
(defun comment-marked-region () | |
"comments the marked region, just like M-x comment-region" | |
(interactive) | |
(comment-region (mark) (point))) | |
(defun uncomment-marked-region () | |
"uncoments the marked region, just like M-x uncomment-region" | |
(interactive) | |
(uncomment-region-default (mark) (point))) |
This file contains hidden or 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 Cat = { // this is actually an object: a "prototype" object | |
color: 'none', | |
size: 'none', | |
meow: function() { | |
console.log("meow"); | |
} | |
}; | |
var Garfield = Object.create(Cat); // this is a prototype object too |