<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Context and Prototype by BCS</title>
      <link>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh</link>
      <description>Part 1 Block 6 Exercises
</description>
      <language>en-us</language>
      <pubDate>2017-05-19 16:30:51 UTC</pubDate>
      <lastBuildDate>2026-01-10 14:59:57 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Click the button in the bottom right corner to submit your solution</title>
         <author>BarcelonaCodeSchool</author>
         <link>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/172845871</link>
         <description><![CDATA[<div>Then type your name, exercise number and paste the code. </div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-19 16:30:51 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/172845871</guid>
      </item>
      <item>
         <title>Luke Exercise 1</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174592024</link>
         <description><![CDATA[<div>var bankAccount = {totalAmount:0, <br>                   withdraw:function(number){bankAccount.totalAmount-=number}, deposit: function(number){bankAccount.totalAmount+=number}, balance: function(){return bankAccount.totalAmount}, clear:function(){return bankAccount.totalAmount=0},<br>                   set:function(number){return bankAccount.totalAmount=number}<br>                  }</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-31 10:43:59 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174592024</guid>
      </item>
      <item>
         <title>Luke Exercise 2</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174631510</link>
         <description><![CDATA[<div>var bankAccount = function(money) {<br>	this.cash = money || 0;<br>	this.withdraw = function(input) {<br>			this.cash = this.cash -= input;<br>		};<br>	this.deposit = function(input){<br>			this.cash = this.cash += input;<br>		};<br>    this.balance = function(){return this.cash}<br>};<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-31 14:30:05 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174631510</guid>
      </item>
      <item>
         <title>Challenge 4 Universe</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174763109</link>
         <description><![CDATA[<div>var Universe ={<br><br>	Energy :{<br><br>		initialAmount:0,<br><br>		destroy:function(number){<br><br>			Universe.Energy.initialAmount-=number			<br><br>			Universe.Matter.initialAmount+=number<br><br>		},<br><br>		total: function(){<br><br>			return Universe.Energy.initialAmount<br><br>		}<br><br>},<br><br><br><br>	Matter: {&nbsp;<br><br>		initialAmount:0,<br><br>		destroy: function(number){<br><br>			Universe.Matter.initialAmount-=number<br><br>			Universe.Energy.initialAmount+=number<br><br>		},<br><br>		total:function(){<br><br>			return Universe.Matter.initialAmount<br><br>		}<br><br><br><br>}<br><br>}<br><br><br><br>Universe.Matter.total() // 0&nbsp;<br><br>Universe.Energy.total() // 0&nbsp;<br><br><br><br>Universe.Matter.destroy(5) // 0&nbsp;<br><br>Universe.Matter.total() // -5&nbsp;<br><br>Universe.Energy.total() // 5&nbsp;<br><br><br><br><br><br>Universe.Energy.destroy(-5) // 0&nbsp;<br><br>Universe.Matter.total() // -10&nbsp;<br><br>Universe.Energy.total() // 10&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-01 08:09:31 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174763109</guid>
      </item>
      <item>
         <title>Luke Exercise 4</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174764857</link>
         <description><![CDATA[<div>var Universe = {<br>    Matter:{<br>        initial:0,<br>        total:function(){return Universe.Matter.initial},<br>        destroy:function(number){<br>            Universe.Matter.initial=Universe.Matter.initial-=number<br>            Universe.Energy.initial=Universe.Energy.initial+=number<br>        }<br>    },<br>    Energy:{<br>        initial:0,<br>        total:function(){return universe.energy.initial},<br>        destroy:function(number){<br>            Universe.Matter.initial=Universe.Matter.initial+=number<br>            Universe.Energy.initial=Universe.Energy.initial-=number<br>        }<br>    }<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-06-01 08:21:21 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/qehaaim9ymgh/wish/174764857</guid>
      </item>
   </channel>
</rss>
