This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Topic specific site requests


School of Webcraft and this group are one of many stakeholders in P2PU so we have to respect the decisions that influence the site's development.

If we identify specific Javascript requirements that we'll need for this group, let's share them here, work out potential solutions and make requests on Lighthouse from here.

1) Code formatting and whitespace isn't maintained on Wall - is this important?

More importantly, can Tasks and Task comments format code effectively?

 

Object.defineProperty(obj, prop, descriptor)

var o = {}; // Creates a new object

// Example of an object property added with defineProperty with a data property descripto

Object.defineProperty(o, "a", {value : 37,
                                   writable : true,
                                   enumerable : true,

                                   configurable : true});
// 'a' property exists in the o object and its value is 37 so you have name/value and writable,enumerable, configurable are attributes. They are attributes of every property, so they control for each property on each object.
 

Task Discussion