A block of code that performs a task.
What is a function?
Stores values that can change while executing our code.
What is a variable?
a way to repeat the same set of actions a certain number of times or until a specific condition is true.
What is a loop?
a conditional statement that runs a different set of statements depending on whether an expression is true or false (a condition is met)
What is an if-else statement?
The name of the app we use to code
What is DroneBlocks?
A naming convention, especially for functions, in which the first letter of a word in a compound word is capitalized and the other words after are lower-cased.
What is camelCase?
A variable that stores a value that DOES NOT change.
What is a constant variable?
- They helps us to avoid writing the same blocks of code.
- We can easily extend them for larger number of iterations or repetitions
Why do we use loops?
Something a program checks to see whether it is true before deciding to take an action
What is a condition?
The name of the environment that helps us test code and visualize what the drone is supposed to do.
What is the simulator?
A function that does not return a value.
What is a void function?
The way we add 1 to a variable's existing value.
EX: distance = distance + 1
What is incrementing?
- They help us add logic to our code
Why do we use if-else statements?
New York University
What school does Isaiah go to?
- They are reusable in code.
- They help to make the code more readable.
- They help us debug our code in a easier way and maintain our code.
Why do we use functions?
The way we subtract 1 from a variable's existing value.
EX: distance = distance - 1
What is decrementing?
A block of code that performs a task.
What is a function?
Defines a function with a proper name, specified parameters and executable code inside of it.
What is a function declaration?
- They helps us store values that can be used all throughout our code
- They can be used as inputs for functions.
- We can perform mathematical operations with them.
EX: sum = number_1 + number_2
Why do we use variables?
A function that does not return a value.
What is a void function?