Professional Documents
Culture Documents
00 - Demo Teaching
00 - Demo Teaching
Timedoor Academy
1
EVENT WHEN BUTTON PRESSED
Let’s play! Pay attention to the button board that your teacher
brings!
3. When is pressed, . . . . . . . . . . . . . . . . . . . .
4. When is pressed, . . . . . . . . . . . . . . . . . . . .
5. When is pressed, . . . . . . . . . . . . . . . . . . . .
2
LOOPING CODES
3
REPEATING COMMANDS
VOCABULARY
connect the
pair with a line!
4
Meeting 2 - Screen Time in Event and Loop
____________________________________________________________
____________________________________________________________
____________________________________________________________
____________________________________________________________
5
MEETING 2
CODING IN VARIOUS
CONDITION
6
WHAT IF ...
VOCABULARY
Code Conditional
If [a condition]
Then [do the command]
Else [do another command]
7
CONDITIONAL IN CARDS
8
CONDITIONAL IN CARDS
Card 1
Card 2
Card 3
Total
Card 1
Card 2
Card 3
Total
Card 1
Card 2
Card 3
Total
9
HOW WAS TODAY’S LEARNING?
1. What is Conditional?
Answer:
____________________________________________________________
____________________________________________________________
_____________________________________
_____________________________________
10
MEETING 3
11
FOR LOOP
VOCABULARY
For Loop
Repetition of a process that has already
known it’s repetition numbers or is
commonly used for repetition with certain
pattern.
Counter is a variable.
Imagine that a counter as a container. For example is an aquarium
Counted by 1 means that the value will be counted by 1 for each loop.
1 fish will be added as long as the number of fish in the aquarium has not reached 3.
Number of fish < 3? Number of fish < 3? Number of fish < 3? Number of fish < 3?
To determine the
loop, check the
number of how
many times +1 is
+1 +1 +1 executed.
Yes Yes Yes No
12
FOR LOOP IN JAVASCRIPT
//commands to repeat
} Starting Stop Step
Repeated Commands Value Value Value
Same as For Loop in block coding, the condition For Loop consists
of 3 parts.
Code
for (i=0; i<3; i++){
forward();
forward();
forward(); Have you ever encountered
forward();
forward();
loops within loops?
turnLeft();
}
Code
13
HOW WAS TODAY’S LEARNING?
____________________________________________________________
Answer:
____________________________________________________________
14