ApexSensei

Drills Apex basics

Comments that survive review

Comments explain code without changing what it does.

Your task

Add a // comment above the Industry line to say why it is 'Finance', stop the two scratch logs from running, and leave the Account: log running.

Account acc = new Account();
acc.Name = 'RidgePoint Capital';
acc.Industry = 'Finance';
System.debug('scratch');
System.debug('delete me');
System.debug('Account: ' + acc.Name);

Requirements

  1. Industry assignment should be commented with the reason
  2. scratch log should be removed
  3. delete me log should be removed
  4. Account: log should be kept active
  5. Account setup lines should be preserved

Sign in to open this drill