Back to Freecodecamp

Task 24

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

latest1.6 KB
Original Source
<!-- (Audio) Sarah: Functions are like small, reusable tasks that you can use in your code. -->

--description--

Please answer the question below.

--questions--

--text--

How does Sarah describe functions in her explanation?

--answers--

As small, reusable tasks that can be used multiple times in code


As large, complex operations that are difficult to manage

--feedback--

Sarah specifically mentions that functions are small and reusable, not large and complex.


As one-time use commands that are not saved

--feedback--

Sarah describes functions as reusable, meaning they can be used more than once.


As unnecessary parts of programming that should be avoided

--feedback--

Sarah highlights functions as beneficial and reusable, which contradicts them being unnecessary.

--video-solution--

1

--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": 4.18,
      "finishTimestamp": 7.76
    }
  },
  "commands": [
    {
      "character": "Sarah",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sarah",
      "startTime": 1,
      "finishTime": 4.58,
      "dialogue": {
        "text": "Functions are like small reusable tasks that you can use in your code.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "opacity": 0,
      "startTime": 5.08
    }
  ]
}