Fundamentals of Web Programming Pre-Final CS

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

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.

2
New cards

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.

3
New cards

local variable

Only usable inside its corresponding function block.

4
New cards

global variable

It is usable anywhere in the program.

5
New cards

Parameters

Are names separated by commas, placed inside the parenthesis after the function name, and treated as local variables.

6
New cards

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.

7
New cards

syntax

what is the grammar in the programming language?

8
New cards

keywords

what is the vocabulary of programming language?

9
New cards

Arguments

Actual values passed to a function when called (e.g., `add(5, 7)`).

10
New cards

SyntaxError

appears when a code is ill-formed. When typos occur, or when unmatching parenthesis or brackets.

11
New cards

ReferenceError

This error occurs when the programmer tries to access a function or a variable that does not exist.

12
New cards

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.

13
New cards

RangeError

This error generated when a value is passed to a function outside its acceptable range.

14
New cards

Exception

Runtime error that interrupts program execution unless handled.

15
New cards

try...catch

Statement to handle exceptions; try runs code, catch handles errors.

16
New cards

finally

Optional block in try...catch that executes regardless of errors.

17
New cards

Debugging

Process of identifying and fixing errors using tools like console.log or debugger.

18
New cards

Breakpoint

Pauses code execution at a specific line for inspection (e.g., debugger;).

19
New cards

Resume

The debugger runs the program and "breaks" on user-defined breakpoints.

20
New cards

Step Into

Debugger action to enter and execute each line of a function.

21
New cards

Step Over

Debugger action to execute a function call without entering its details.

22
New cards

Step Out

Debugger action to exit the current function and resume execution.