variable
a reference to a value or expression that can be used repeatedly throughout the program
global variables
permanent, can be used anywhere in your code
debugging
process of finding errors and fixing them
what are watchers main purpose?
to keep track of a variables change in value
expression
combination of operators and values
local variable
temporary, can be used only in the part of the code where it was created
what do warnings and errors indicate?
syntax errors
define the meaning
(x^2-9x+18)!=(6x^3-19x^2+16x-4/x-2)
the expressions are NOT equal to each other
boolean value
data type that is either true or false question
function
a named group of programming instructions
age=16
time=8
what is time-age?
time-age=-8
using a variable that doesn't exist is an example of...
syntax error
syntax error
code doesn’t follow the rules of the programming language
function call
a command that executes the code within a function
why are local variables avoided?
declaring another variable of the same name locally will make the code confusing and cause unexpected behavior in your code
name all 3 logical operators
AND (&&), OR (||), NOT (!=)
logic error
code follows the rules of the programming language but doesn’t do what you intend
variable scope
dictates what portions of the code can "see" or use a variable
after fixing a bug, what should you do?
document error and how it was fixed
name all 6 comparison operators
greater than (>), less than (<), greater than or equal to (>=), less than or equal to (<=), equal (==), not equal (!=)