Back to Freecodecamp

Task 23

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

latest1.8 KB
Original Source
<!-- (Audio) Sarah: Absolutely. You should look for a description of what the function does and any return values. -->

--description--

Listen to the audio and answer the question.

--questions--

--text--

What does Sarah suggest looking for in a function's description?

--answers--

Only the return values of the function

--feedback--

While return values are important, Sarah advises looking at both the function's purpose and its return values, not just the latter.


The programming language used in the function

--feedback--

Sarah's focus is on understanding what the function does and its return values, not the programming language it's written in.


A description of the function's purpose and any return values


The length of time the function takes to execute

--feedback--

Sarah mentions understanding the function's purpose and return values, not the execution time of the function.

--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": 19.9,
      "finishTimestamp": 24.88
    }
  },
  "commands": [
    {
      "character": "Sarah",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sarah",
      "startTime": 1,
      "finishTime": 5.98,
      "dialogue": {
        "text": "Absolutely. You should look for a description of what the function does and any return values.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "opacity": 0,
      "startTime": 6.48
    }
  ]
}