Back to Freecodecamp

Task 20

curriculum/challenges/english/blocks/learn-how-to-read-and-understand-code-documentation/6600107b9dffa8350e0c4ee8.md

latest2.2 KB
Original Source
<!-- (Audio) Sarah: That's a great question. First, you should pay attention to the function's name and parameters. It can give you an idea of what the function does and how to use it. -->

--description--

Listen to the audio and answer the question.

--questions--

--text--

Why does Sarah suggest that Tom should pay attention to the function's name and parameters?

--answers--

To memorize the code more easily

--feedback--

While memorization can be helpful, Sarah's advice is about understanding the function's purpose and usage, not just memorizing the code.


To determine the complexity of the function

--feedback--

The focus of Sarah's advice is on understanding what the function does and how to use it, rather than assessing its complexity.


To understand what the function does and how to use it


To find errors in the function's code

--feedback--

Sarah's suggestion is aimed at understanding the function's role and usage, not primarily at finding errors.

--video-solution--

3

--scene--

json
{
  "setup": {
    "background": "company2-breakroom.png",
    "characters": [
      {
        "character": "Sarah",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "7.2-2.mp3",
      "startTime": 1,
      "startTimestamp": 8.2,
      "finishTimestamp": 16.68
    }
  },
  "commands": [
    {
      "character": "Sarah",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sarah",
      "startTime": 1,
      "finishTime": 2.08,
      "dialogue": {
        "text": "That's a great question.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "startTime": 2.64,
      "finishTime": 5.66,
      "dialogue": {
        "text": "First, you should pay attention to the function's name and parameters.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "startTime": 6,
      "finishTime": 9.48,
      "dialogue": {
        "text": "It can give you an idea of what the function does and how to use it.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "opacity": 0,
      "startTime": 9.98
    }
  ]
}