Back to Freecodecamp

Task 42

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

latest2.1 KB
Original Source
<!-- (Audio) Sophie: Variables help you store information in your code, like names, numbers, and more. You can use the equals symbol to assign values to them. -->

--description--

Please answer the question below.

--questions--

--text--

How do variables work in programming?

--answers--

Variables organize code and are accessed through specific keywords.

--feedback--

Variables store information, not just organize code, and the method mentioned doesn't specifically involve using the equals symbol.


Variables track changes in values using mathematical symbols.

--feedback--

This isn't right because it incorrectly suggests that variables track changes by themselves and emphasizes mathematical symbols, not assignment.


Variables control program flow and use commands to modify data.

--feedback--

This option misrepresents variables as controlling program flow, which is not their primary function.


Variables store information and use the equals symbol to assign values.

--video-solution--

4

--scene--

json
{
  "setup": {
    "background": "company2-center.png",
    "characters": [
      {
        "character": "Sophie",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "5.2-3.mp3",
      "startTime": 1,
      "startTimestamp": 6.48,
      "finishTimestamp": 14.32
    }
  },
  "commands": [
    {
      "character": "Sophie",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 5.7,
      "dialogue": {
        "text": "Variables help you store information in your code, like names, numbers, and more.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "startTime": 5.92,
      "finishTime": 8.64,
      "dialogue": {
        "text": "You can use the equals symbol to assign values to them.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "opacity": 0,
      "startTime": 9.14
    }
  ]
}