<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
		<id>http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=Solucio_exercicis_this</id>
		<title>Solucio exercicis this - Historial de revisió</title>
		<link rel="self" type="application/atom+xml" href="http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=Solucio_exercicis_this"/>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=Solucio_exercicis_this&amp;action=history"/>
		<updated>2026-04-20T00:53:54Z</updated>
		<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://wikiserver.infomerce.es/index.php?title=Solucio_exercicis_this&amp;diff=2680&amp;oldid=prev</id>
		<title>Jnoguera: Es crea la pàgina amb «===== Exercici 8 =====  &lt;source lang=&quot;java&quot;&gt; var persona = {     name: 'edu',     twitter: 'eiximenis',     twitterUrl: 'http://twitter.com/' + this.twitter };   console.…».</title>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=Solucio_exercicis_this&amp;diff=2680&amp;oldid=prev"/>
				<updated>2014-10-30T12:59:37Z</updated>
		
		<summary type="html">&lt;p&gt;Es crea la pàgina amb «===== Exercici 8 =====  &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt; var persona = {     name: &amp;#039;edu&amp;#039;,     twitter: &amp;#039;eiximenis&amp;#039;,     twitterUrl: &amp;#039;http://twitter.com/&amp;#039; + this.twitter };   console.…».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Exercici 8 =====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
var persona = {&lt;br /&gt;
    name: 'edu',&lt;br /&gt;
    twitter: 'eiximenis',&lt;br /&gt;
    twitterUrl: 'http://twitter.com/' + this.twitter&lt;br /&gt;
};&lt;br /&gt;
 &lt;br /&gt;
console.log(persona.twitterUrl);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Exercici 8.1'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
// this == window&lt;br /&gt;
console.debug(this);&lt;br /&gt;
&lt;br /&gt;
function test(){&lt;br /&gt;
	// this == window&lt;br /&gt;
console.debug(this);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
test();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Exercici 8.2''' &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
var obj = {&lt;br /&gt;
	name: 'obj',&lt;br /&gt;
	run: function(){&lt;br /&gt;
		// this == obj&lt;br /&gt;
		this.value = 1;&lt;br /&gt;
		console.debug(this.name);&lt;br /&gt;
	}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
obj.run();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Exercici 8.3''' &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
var obj = {&lt;br /&gt;
	name: 'obj',&lt;br /&gt;
	run: function(){&lt;br /&gt;
		this.value = 1;&lt;br /&gt;
		console.debug(this); // this == obj&lt;br /&gt;
		&lt;br /&gt;
		(function(){ // se crea un nuevo scope&lt;br /&gt;
			console.debug(this); // this == window&lt;br /&gt;
		})();&lt;br /&gt;
		&lt;br /&gt;
		function test(){ // se crea un nuevo scope&lt;br /&gt;
			console.debug(this); // this == window&lt;br /&gt;
		}&lt;br /&gt;
		&lt;br /&gt;
		test();&lt;br /&gt;
	}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
obj.run();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Exercici 8.4'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
var obj = {&lt;br /&gt;
    name: 'obj',&lt;br /&gt;
    run: function(){&lt;br /&gt;
        this.value = 1;&lt;br /&gt;
        console.debug(this); // this == obj&lt;br /&gt;
         &lt;br /&gt;
        (function(){&lt;br /&gt;
            console.debug(this); // this == obj&lt;br /&gt;
        }).call(this); // se autoejecuta con el método call&lt;br /&gt;
         &lt;br /&gt;
        this.test = function(){ // se define como método de obj&lt;br /&gt;
            console.debug(this); // this == obj&lt;br /&gt;
        }&lt;br /&gt;
         &lt;br /&gt;
        this.test(); // se ejecuta dentro del contexto de obj&lt;br /&gt;
    }&lt;br /&gt;
};&lt;br /&gt;
 &lt;br /&gt;
obj.run();&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jnoguera</name></author>	</entry>

	</feed>