Developing Software Flashcards
In JavaScript, What does Sequence Mean?
Set of instructions in a program which follow from one another
In JavaScript, What does Selection Mean?
A decision made within a program when it decides to move on based on the occurring results of an event
In JavaScript, What does Iteration Mean?
Repetition of block statements within a program
In JavaScript, What is a Variable?
A label that refers to a memory location, something we can store on a computer
In JavaScript, What are the variable scopes?
Local - Variables declared within a function or loop
Global - Variables declared outside a function or loop
In JavaScript, What are some variable types?
Integer, Letters, Arrays etc.
In JavaScript, What is a function?
Block of code program to preform a particular task
In JavaScript, What is a parameter?
Named variables as part of a function
In JavaScript, what does ‘return’ do?
Stops the execution of a function and returns a value to the user
How do you make a comment in JavaScript?
//like this!
IF Statement
Useifto specify a block of code to be executed, if a specified condition is true
Else IF Statement
Useelse/else IFto specify a block of code to be executed, if the same condition is false
Switch Statement
Useswitchto specify many alternative blocks of code to be executed
For Loop
for- loops through a block of code a number of times
While Loop
loops through a block of code while a specified condition is true
Do-While Loop
also loops through a block of code while a specified condition is true
Thedo…whileis used when you want to run a code blockat least one time