Back to Freecodecamp

Task 31

curriculum/challenges/english/blocks/learn-how-to-use-code-related-concepts-and-terms/66331263a35e868f3dade3de.md

latest1.9 KB
Original Source
<!-- (Audio) Sarah: No problem, Tom. To understand them, you can look at their names and comments. Comments explain that function's purpose. -->

--description--

Please answer the question below.

--questions--

--text--

How does Sarah suggest Tom should understand the functions?

--answers--

By memorizing the code of each function

--feedback--

Sarah advises looking at the names and comments associated with the functions, not memorizing their code.


By looking at their names and comments


By asking other programmers

--feedback--

Sarah does not mention consulting other programmers; she focuses on using the names and comments within the code itself.


By rewriting the functions

--feedback--

Rewriting is not suggested by Sarah. She recommends understanding them through the existing names and comments in the code.

--video-solution--

2

--scene--

json
{
  "setup": {
    "background": "company2-roof.png",
    "characters": [
      {
        "character": "Sarah",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "5.2-2.mp3",
      "startTime": 1,
      "startTimestamp": 14.06,
      "finishTimestamp": 20.42
    }
  },
  "commands": [
    {
      "character": "Sarah",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sarah",
      "startTime": 1,
      "finishTime": 5.08,
      "dialogue": {
        "text": "No problem, Tom. To understand them, you can look at their names and comments.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "startTime": 5.46,
      "finishTime": 7.36,
      "dialogue": {
        "text": "Comments explain that function's purpose.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "opacity": 0,
      "startTime": 7.86
    }
  ]
}