Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

All material in this book is the property of

Timedoor Academy

It is forbidden to distribute/sell material


without the permission of Timedoor
Academy
DEMO TEACHING

1. Choose 1 out of 3 topics to be delivered in demo


teaching
2. The duration of the demo teaching is 5 minutes
3. Pretend that the other participants is your students
4. You don’t need to introduce yourself, pretend that
this is your 2nd or 3rd meeting with the students
5. You may use power point, canva, figma, etc as a
media to deliver your material
6. Do not rush, do it on your own pace! It is okay if you
cannot cover everything in 5 minutes. We would like
to see how you deliver and manage the class.
MEETING 1

EVENT AND LOOP IN


CODING

What will we learn today?

1. Understanding Event in Coding

2. Using Loop in Coding

1
EVENT WHEN BUTTON PRESSED

WHAT WILL HAPPEN?


When pressing the ON button of TV
remote control?

When nobody presses it?

WHAT WILL HAPPEN?


When pressing the START button on
microwave?

When nobody presses it?

Let’s play! Pay attention to the button board that your teacher
brings!

1. When is pressed, say Yay!

2. When is pressed, clap hands 2x

3. When is pressed, . . . . . . . . . . . . . . . . . . . .

4. When is pressed, . . . . . . . . . . . . . . . . . . . .

5. When is pressed, . . . . . . . . . . . . . . . . . . . .

2
LOOPING CODES

DO YOU STILL REMEMBER


ANGRY BIRD GAME?
How do you make Angry Birds
moves forward?

How do you make it move


forward repeatedly?
What will you use to make the code run
repeatedly?

3
REPEATING COMMANDS

VOCABULARY

Loop is repeating the coding/commands

Example of Loop code:


Repeat

connect the
pair with a line!

4
Meeting 2 - Screen Time in Event and Loop

HOW WAS TODAY’S LEARNING?

1. What is Event in coding?


Answer:

____________________________________________________________

2. How do we know if one code is an Event?


Answer:

____________________________________________________________

3. What is the function of Loop in coding?


What are the benefits of using Loop?
Answer:

____________________________________________________________

4. Can you give example of using Loop?


Answer:

____________________________________________________________

5
MEETING 2

CODING IN VARIOUS
CONDITION

What will we learn today?

1. Introduction to Conditional Concept in Coding

6
WHAT IF ...

if you are more than ten


years old
Raise your hands!

if you are boy


Stand up!

if you are a boy with black


shirt
Sit down!

VOCABULARY

Conditional is a condition to make


something happens

Code Conditional
If [a condition]
Then [do the command]
Else [do another command]

7
CONDITIONAL IN CARDS

Let’s play card while learning Conditional!

Pay attention to the rules!

If black card comes out


Team 1 wins 1 point
Else
Team 2 wins 1 point

If card number is less than 6


Team 1 wins according to number
Else
Team 2 wins 1 poin

If card number is less than 6


If black card comes out
Team 1 wins according to number
Else
Team 2 wins 1 points

8
CONDITIONAL IN CARDS

Round 1 Card Drawn Team 1 Team 2

Card 1

Card 2

Card 3

Total

Round 2 Card Drawn Team 1 Team 2

Card 1

Card 2

Card 3

Total

Round 3 Card Drawn Team 1 Team 2

Card 1

Card 2

Card 3

Total

Round Team 1 Team 2

Round 1 How does the game?


Did you win?
Round 2
Do you understand
Round 3 Conditional now?
Total

9
HOW WAS TODAY’S LEARNING?

1. What is Conditional?
Answer:

____________________________________________________________

2. How do we know if a coding is part of Conditional?


Answer:

____________________________________________________________

3. In this coding, what condtion will


make Super Jump is run?
Answer:

_____________________________________

4. What will happen if there is no


Stacked Alien?
Answer:

_____________________________________

10
MEETING 3

FOR LOOP IN JAVASCRIPT

What will we learn today?

1. Understanding for loop concept in Javascript

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.

Look at the use of for loop below!

Counter Starting Value Stop Value Step Value


variable that the starting the ending value the number that
holds the value of the which determines is added each
number of loops counter variable when the loop time the loop is
stops. executed.

Counter is a variable.
Imagine that a counter as a container. For example is an aquarium

From 1 means the starting value is 1.


Means that, at the beginning the aquarium only contains 1 fish.

To 3 means the ending values.


It means that the last time fish can be added to aquarium is when the number is become 3.

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

This time we will use for loop on JavaScript!


Pay attention to the writing of Foor Loop in Javascript!
Keyword for Condition

for (i=0; i<5; i++){

//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();
}

Sometimes we will find a pattern that repeats itself in a loop.


For this we can use a loop within loop which is called as
nested loop.

Code

for (i=0; i<3; i++){


for (j=0; j<5; j++){ If you write For Loop within
forward();
}
For Loop, the name of its
turnLeft(); variable must be different!
}

How do you read the code above?

13
HOW WAS TODAY’S LEARNING?

1. In your opinion, why Loop is needed in coding?


Answer:

____________________________________________________________

2. Explain the function of each number in this code!


How many times will the loop happen?

Answer:

____________________________________________________________

14

You might also like