Back to Freecodecamp

Task 47

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

latest1.7 KB
Original Source
<!-- (Audio) Sophie: Great question, Tom. Variables can change their values, but constants stay the same. -->

--description--

Please answer the question below.

--questions--

--text--

What is the difference between variables and constants according to Sophie?

--answers--

Variables' values can be different, but constants remain unchanged.


Variables and constants are both used to store values permanently.

--feedback--

This option isn't correct because constants are permanent, but variables can change.


Constants can change their values just like variables.

--feedback--

This isn't accurate. Constants do not change their values—they stay the same, unlike variables.


Variables are used less frequently than constants in programming.

--feedback--

The frequency of use isn't discussed, and Sophie's statement focuses on usage rather than their functional difference.

--video-solution--

1

--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": 22.24,
      "finishTimestamp": 27.02
    }
  },
  "commands": [
    {
      "character": "Sophie",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 5.78,
      "dialogue": {
        "text": "Great question, Tom. Variables can change their values, but constants stay the same.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "opacity": 0,
      "startTime": 6.28
    }
  ]
}