Motivation: Basic familiarity with the programming language used on the job is a prerequisite for quickly getting up to speed.
The testing process: Analyzing, understanding and fixing existing code.
Motivation: A good programmer should be able to find and fix a bug in his or someone else's code.
The testing process: Programming dynamic web user interface logic.
Motivation: Dynamically accessing and updating user interface elements is unavoidable in modern web applications.
Function appendChildren should add a new child div to each existing div. New divs should be decorated by calling decorateDiv.
For example, after appendChildren is executed, the following divs:
<div id="a"> <div id="b"> </div> </div>
should take the following form (assuming decorateDiv does nothing):
<div id="a"> <div id="b"> <div></div> </div> <div></div> </div>
The code below should do the job, but for some reason it goes into an infinite loop. Fix the bugs.
- Example case: Exception
- Appending divs: Exception