mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
94 lines
2.1 KiB
Markdown
94 lines
2.1 KiB
Markdown
---
|
|
id: 6630e609d81a446cd663c521
|
|
title: Task 9
|
|
challengeType: 22
|
|
dashedName: task-9
|
|
lang: en-US
|
|
---
|
|
|
|
<!-- (Audio) Sarah: Good question! You usually choose data types based on the kind of information you want to store. -->
|
|
|
|
# --description--
|
|
|
|
The verb `to store` in programming refers to the act of keeping or saving data so that it can be used later. Choosing the right data types is critical because it influences how information is `stored` and used in a program.
|
|
|
|
Different data types are suited for different kinds of information, like text, numbers, or boolean values. For example, to `store` text, a programmer might use the data type `string`.
|
|
|
|
# --fillInTheBlank--
|
|
|
|
## --sentence--
|
|
|
|
`Good question! You usually choose data types BLANK BLANK the kind of information you want to BLANK.`
|
|
|
|
## --blanks--
|
|
|
|
`based`
|
|
|
|
### --feedback--
|
|
|
|
This word is used to indicate the foundation or reason behind a decision. Here, it introduces the criteria for choosing data types.
|
|
|
|
---
|
|
|
|
`on`
|
|
|
|
### --feedback--
|
|
|
|
This preposition is commonly used to point out the basis or criteria for decisions. It links the decision-making process to the type of information.
|
|
|
|
---
|
|
|
|
`store`
|
|
|
|
### --feedback--
|
|
|
|
This verb means to save or keep information in a computing system.
|
|
|
|
# --scene--
|
|
|
|
```json
|
|
{
|
|
"setup": {
|
|
"background": "company1-reception.png",
|
|
"characters": [
|
|
{
|
|
"character": "Sarah",
|
|
"position": {
|
|
"x": 50,
|
|
"y": 0,
|
|
"z": 1.4
|
|
},
|
|
"opacity": 0
|
|
}
|
|
],
|
|
"audio": {
|
|
"filename": "5.2-1.mp3",
|
|
"startTime": 1,
|
|
"startTimestamp": 15.82,
|
|
"finishTimestamp": 20.6
|
|
}
|
|
},
|
|
"commands": [
|
|
{
|
|
"character": "Sarah",
|
|
"opacity": 1,
|
|
"startTime": 0
|
|
},
|
|
{
|
|
"character": "Sarah",
|
|
"startTime": 1,
|
|
"finishTime": 5.78,
|
|
"dialogue": {
|
|
"text": "Good question! You usually choose data types based on the kind of information you want to store.",
|
|
"align": "center"
|
|
}
|
|
},
|
|
{
|
|
"character": "Sarah",
|
|
"opacity": 0,
|
|
"startTime": 6.28
|
|
}
|
|
]
|
|
}
|
|
```
|