<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Scope, Functions and Objects by BCS</title>
      <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg</link>
      <description>Part 1 Block 5 Exercises
</description>
      <language>en-us</language>
      <pubDate>2017-05-19 16:26:02 UTC</pubDate>
      <lastBuildDate>2017-05-30 08:22:54 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/cwkpggkzwlrg/wish/172845031</link>
         <description><![CDATA[<div>Type you name, exercise number and paste the code.</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-19 16:26:02 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/172845031</guid>
      </item>
      <item>
         <title>Luke Excercise 1</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174228398</link>
         <description><![CDATA[<div>var collector = []<br><br>function accumulator(number){<br>&nbsp; &nbsp; collector.push(number)<br>return collector}<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-29 10:03:23 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174228398</guid>
      </item>
      <item>
         <title>Ex. 1</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174229082</link>
         <description><![CDATA[<div>colector=[]<br><br>function accumulator (number){<br><br>colector.push(number)<br><br>return colector<br><br>}<br>accumulator(3)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-29 10:09:25 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174229082</guid>
      </item>
      <item>
         <title>Ex 2 Gosia</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174237010</link>
         <description><![CDATA[<div>schema = ["id", "name", "age"]
<br>function model (add,obj){
<br>if (add ==='add') {
<br>var newObj={}
<br>	for (var key in obj) {
<br>	if (schema.indexOf(key) != -1) {
<br>	newObj[key]= obj[key] 
<br>	}
<br>
<br>}return newObj
<br>}
<br>}
<br>model("add", {id: 1, name: "Joe", age: 32, address: "Muntaner 262, Barcelona"})
<br>model("add", {id: 1, age: 32, address: "Muntaner 262, Barcelona"}) </div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-29 11:29:24 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174237010</guid>
      </item>
      <item>
         <title>Ex 3.</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174262449</link>
         <description><![CDATA[<div>schema = {id: "number", name: "string", age:"number", married: "boolean"}<br><br>function model (add,obj){<br><br>if (add ==='add') {<br><br>var newObj={}<br><br>	for (var key in obj) {<br><br>	if (key in schema &amp;&amp; typeof obj[key] ===schema[key]) { <br><br>	newObj[key]= obj[key] <br><br>	}<br><br>	}<br><br><br><br>}return newObj<br><br>}<br><br>model("add", {id: 1, name: "Joe", age: "32", address: "Muntaner 262, Barcelona", married: "to Mary"})</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-29 14:43:48 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174262449</guid>
      </item>
      <item>
         <title>Luke Exercise 2</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174269925</link>
         <description><![CDATA[<div>var schema = ["id", "name", "age"]    <br>var newObj = {}<br><br>function model (input,object){<br>    for (var key in object){<br>        if(schema.indexOf(key)!=-1 &amp;&amp; input==='add') {<br>        newObj[key]=object[key]<br>        }<br>    }return newObj<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-29 15:48:59 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174269925</guid>
      </item>
      <item>
         <title>Luke Exercise 3</title>
         <author></author>
         <link>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174269957</link>
         <description><![CDATA[<div>var schema = {id: "number", name: "string", age: "number", married: "boolean"}<br>var newObj = {}<br><br>function model (input,object){<br>    for (x in schema){<br>         if (typeof object[x]== schema[x] &amp;&amp; input==='add'){<br>        newObj[x]=object[x]<br>        }<br>    }return newObj<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-29 15:49:21 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/cwkpggkzwlrg/wish/174269957</guid>
      </item>
   </channel>
</rss>
