7 kyu

Add a property to an object

697 of 698Palle

Description:

Write a function that adds a named property to an object. It must be possible to set the property to a new value. If the property already exists on the object, and error should be thrown.

Fundamentals

More By Author:

Check out these other kata created by Palle

Stats:

CreatedSep 11, 2015
PublishedSep 11, 2015
Warriors Trained1151
Total Skips59
Total Code Submissions2600
Total Times Completed698
JavaScript Completions697
Total Stars19
% of votes with a positive feedback rating88% of 152
Total "Very Satisfied" Votes119
Total "Somewhat Satisfied" Votes29
Total "Not Satisfied" Votes4
Ad
Contributors
  • Palle Avatar
  • myjinxin2015 Avatar
Ad