Back to Freecodecamp

Task 25

curriculum/challenges/english/blocks/learn-how-to-offer-technical-support-and-guidance/6620de23b04dcb10920f2666.md

latest2.1 KB
Original Source
<!-- (Audio) Sarah: To finish, let's consider the comments. If you include comments when they're necessary, it helps future developers understand the logic. -->

--description--

Listen to the audio and answer the question.

--questions--

--text--

Why does Sarah emphasize the inclusion of comments in code?

--answers--

Because it makes the code run faster

--feedback--

Comments in the code do not affect the speed at which the code runs. They are for human understanding.


To help future developers understand the logic of the code


Because comments are required in all programming languages

--feedback--

While comments are helpful, they are not a strict requirement in all programming languages.


To prevent the code from having errors

--feedback--

Comments help in understanding the code but do not directly prevent errors in the code.

--video-solution--

2

--scene--

json
{
  "setup": {
    "background": "interview-room3.png",
    "characters": [
      {
        "character": "Sarah",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "9.1-1.mp3",
      "startTime": 1,
      "startTimestamp": 43.74,
      "finishTimestamp": 50.5
    }
  },
  "commands": [
    {
      "character": "Sarah",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sarah",
      "startTime": 1,
      "finishTime": 3.04,
      "dialogue": {
        "text": "To finish, let's consider the comments.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "startTime": 3.56,
      "finishTime": 5.54,
      "dialogue": {
        "text": "If you include comments when they're necessary,",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "startTime": 5.64,
      "finishTime": 7.76,
      "dialogue": {
        "text": "it helps future developers understand the logic.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "opacity": 0,
      "startTime": 8.26
    }
  ]
}