<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>JavaScript Objects by BCS</title>
      <link>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd</link>
      <description>Part 1 Block 2 Exercises
</description>
      <language>en-us</language>
      <pubDate>2017-05-19 16:15:14 UTC</pubDate>
      <lastBuildDate>2025-12-24 03:39:24 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/bjcg9japw7gd/wish/172843127</link>
         <description><![CDATA[<div>Then type your name, exercise number and paste the code. </div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-19 16:16:18 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/172843127</guid>
      </item>
      <item>
         <title>Gosia Ex5</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/173618969</link>
         <description><![CDATA[<div>var newObj = {}<br>var obj ={a:'1', b:'2'}<br>var keys = Object.keys(obj)<br>var last = keys[keys.length-1]<br>var x = function(obj){<br>    newObj[last]=obj[last]<br>    return newObj<br>}<br><br>x(obj)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-24 13:20:27 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/173618969</guid>
      </item>
      <item>
         <title>Gosia Ex6</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/173624485</link>
         <description><![CDATA[<div>var obj={a:1,b:2, c:2}<br>var sum=0<br>var sumAll = function (obj){<br>for(var key in obj){<br>&nbsp; sum += obj[key]<br>&nbsp; }<br>return sum<br>}<br>sumAll (obj)<br>5</div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-24 13:42:10 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/173624485</guid>
      </item>
      <item>
         <title>Gosia Ex 1 and 2</title>
         <author>gosiapietron</author>
         <link>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/173793145</link>
         <description><![CDATA[<div>ex 1
<br>
<br>var defaulted = function(x){
<br>if (x==undefined) {return "no argument passed"}
<br> return x
<br>}
<br>
<br>
<br>
<br>Ex 2
<br>
<br>var sum= function (a,b){
<br>if (b===undefined) {return a}
<br>return a+b
<br>}
<br>
<br>var subtract = function(a,b){
<br>if (b===undefined) {return a}
<br>return a-b
<br>}
<br>
<br>var multiply = function (a,b){
<br>if (b===undefined) {return a}
<br>return a*b
<br>}
<br>
<br>
<br>var divide = function (a,b){
<br>if (b===undefined) {return a}
<br>if(b===0) {return "denominator cannot be 0"}
<br>return a/b
<br>}
<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-05-25 10:40:05 UTC</pubDate>
         <guid>https://padlet.com/BarcelonaCodeSchool/bjcg9japw7gd/wish/173793145</guid>
      </item>
   </channel>
</rss>
