In the three code examples given below,
fix all the bad practices we have learned so far.
Since we are testing here for good/bad coding practices, which are subjective, some of these questions can have more than one right answer.
Even if you get the right solution, you should check out the proposed solution, and over there, you should read the comments to educate yourself.
Code Example 1