Back to Freecodecamp

Task 17

curriculum/challenges/english/blocks/learn-how-to-offer-technical-support-and-guidance/6620d5fa0e60d10ba81bd831.md

latest2.2 KB
Original Source
<!-- (Audio) Sarah: Now, let's talk about error handling. If you encounter potential issues, it's a good idea to use conditional statements to handle them gracefully. -->

--description--

Gracefully means dealing with problems in a smooth, efficient, and not abrupt way. When a program handles errors gracefully, it manages issues without crashing or causing major disruptions. For example, instead of stopping suddenly, a program might show a helpful error message.

Remember, encounter means to come across something unexpectedly, and a conditional statement is a code that runs only if a certain condition is true.

--fillInTheBlank--

--sentence--

Now, let's talk about error handling. If you BLANK potential issues, it's a good idea to use conditional BLANK to handle them BLANK.

--blanks--

encounter

--feedback--

It means to come across or face something, especially unexpectedly.


statements

--feedback--

It is a line of code that runs only if a specific condition is met.


gracefully

--feedback--

In programming, it means dealing with something in a smooth and efficient way, often preventing the program from crashing.

--scene--

json
{
  "setup": {
    "background": "interview-room3.png",
    "characters": [
      {
        "character": "Sarah",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "9.1-1.mp3",
      "startTime": 1,
      "startTimestamp": 27.42,
      "finishTimestamp": 34.98
    }
  },
  "commands": [
    {
      "character": "Sarah",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sarah",
      "startTime": 1,
      "finishTime": 4.88,
      "dialogue": {
        "text": "Now, let's talk about error handling. If you encounter potential issues,",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "startTime": 5.22,
      "finishTime": 8.56,
      "dialogue": {
        "text": "it's a good idea to use conditional statements to handle them gracefully.",
        "align": "center"
      }
    },
    {
      "character": "Sarah",
      "opacity": 0,
      "startTime": 9.06
    }
  ]
}