1/21
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Function
A separate piece of code intended to perform a specific task. It is usually assigned a specific name that is called many times in different program sections.
return keyword
Causes the function to end exactly wherever this word is placed in the instruction. It allows programmers to return a given value from inside the function to the place where it was called.
local variable
Only usable inside its corresponding function block.
global variable
It is usable anywhere in the program.
Parameters
Are names separated by commas, placed inside the parenthesis after the function name, and treated as local variables.
Errors
It is the operation of programs happen due to misconceptions when solving a problem, improper use and typos of the programming language, or the inability to predict user behavior.
syntax
what is the grammar in the programming language?
keywords
what is the vocabulary of programming language?
Arguments
Actual values passed to a function when called (e.g., `add(5, 7)`).
SyntaxError
appears when a code is ill-formed. When typos occur, or when unmatching parenthesis or brackets.
ReferenceError
This error occurs when the programmer tries to access a function or a variable that does not exist.
TypeError
This error occurs when a specific value is not of the expected type, such as changing the constant value or checking the length of a variable that is not a string.
RangeError
This error generated when a value is passed to a function outside its acceptable range.
Exception
Runtime error that interrupts program execution unless handled.
try...catch
Statement to handle exceptions; try runs code, catch handles errors.
finally
Optional block in try...catch that executes regardless of errors.
Debugging
Process of identifying and fixing errors using tools like console.log or debugger.
Breakpoint
Pauses code execution at a specific line for inspection (e.g., debugger;).
Resume
The debugger runs the program and "breaks" on user-defined breakpoints.
Step Into
Debugger action to enter and execute each line of a function.
Step Over
Debugger action to execute a function call without entering its details.
Step Out
Debugger action to exit the current function and resume execution.