Back to Freecodecamp

Task 24

curriculum/challenges/english/blocks/learn-how-to-document-code-for-a-project/65e86e39e990f4461c9e23a7.md

latest1.9 KB
Original Source
<!-- (Audio) Sophie: I'm working on this code, and I think it's a good idea to add comments. How should I write comments in the code? -->

--description--

Listen to the audio and answer the question.

--questions--

--text--

What is Sophie's idea and what does she want to know?

--answers--

She wants to rewrite the code and knows how to do it.

--feedback--

Sophie's focus is not on rewriting the code, but on adding comments to the existing code.


She thinks adding comments to the code is a good idea and wants to know how to write them.


She is looking for a new coding project to start.

--feedback--

Sophie is currently working on existing code and wants to enhance it with comments, not start a new project.


She needs help in fixing a bug in her code.

--feedback--

Sophie's statement is about adding comments to the code, not about fixing bugs.

--video-solution--

2

--scene--

json
{
  "setup": {
    "background": "company2-center.png",
    "characters": [
      {
        "character": "Sophie",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "7.1-2.mp3",
      "startTime": 1,
      "startTimestamp": 0,
      "finishTimestamp": 5.9
    }
  },
  "commands": [
    {
      "character": "Sophie",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 4.82,
      "dialogue": {
        "text": "I'm working on this code and I think it's a good idea to add comments.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "startTime": 5.22,
      "finishTime": 6.9,
      "dialogue": {
        "text": "How should I write comments in the code?",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "opacity": 0,
      "startTime": 7.4
    }
  ]
}