Digital Tech Notes (JSS1 - SS3)

Block Coding (JSS 2)

Learn block-based coding with Scratch for JSS 2. Discover how to create animations, understand programming concepts, and build digital skills the fun

 


Introduction:

Imagine being able to bring a cartoon character to life on your computer screen — making it walk, talk, dance, or even tell a story — all without writing a single line of complicated code. Sounds exciting, right? That is exactly what block coding makes possible, and it is one of the most enjoyable ways to learn programming today.

In Nigerian secondary schools, Computer Studies is no longer just about typing or using Microsoft Word. The subject is evolving fast, and the NERDC curriculum for JSS 2 now includes topics like block-based coding, which prepares students for a future where technology is at the centre of everything — from banking and education to entertainment and agriculture.

Block coding uses visual blocks that snap together like puzzle pieces to give instructions to a computer. Instead of memorising difficult programming syntax, you simply drag and connect colourful blocks to create programs. The most popular tool for this is Scratch, a free platform developed by MIT (Massachusetts Institute of Technology) that is used by millions of young learners around the world — including students right here in Nigeria.

Whether you are a student in Lagos, Kano, Enugu, or Port Harcourt, learning block coding with Scratch gives you a powerful skill that can open doors to careers in software development, game design, animation, and so much more. Let us dive in.


Learning Objectives

By the end of this lesson, students should be able to:

  1. Define block coding and explain how it differs from text-based programming
  2. Identify the key features and interface components of the Scratch platform
  3. Describe the different categories of blocks available in Scratch
  4. Demonstrate how to create a basic animation using Scratch
  5. Explain how block coding is applied in real-life digital projects
  6. Show responsible and safe behaviour when using online platforms like Scratch

What Is Block Coding?

Block coding is a type of visual programming where instructions are represented as graphical blocks rather than written text. Each block represents a command or action, and when you connect these blocks together in a sequence, they form a program that tells the computer what to do.

Think of it like building with Lego bricks. Each brick has a specific shape and purpose, and you put them together in a particular order to build something meaningful. In block coding, the "bricks" are coloured instruction blocks, and what you build is a working program.

This approach was designed to make programming easier and more accessible, especially for beginners and young learners. You do not need to worry about spelling a command incorrectly or missing a semicolon — the blocks are already formatted correctly, so you can focus entirely on the logic of what you want your program to do.

How Block Coding Differs From Text-Based Coding

In text-based programming languages like Python or Java, programmers type out every instruction using specific words, symbols, and rules called syntax. One small typing mistake can cause the entire program to fail. For example, to make something move forward in Python, you might write a line of code that looks unfamiliar and confusing to a beginner.

In block coding, that same instruction is simply a colourful block that says "move 10 steps." You click it, drag it, and drop it where you need it. No typing. No syntax errors. Just logic and creativity.



Introduction to Scratch

Scratch is a free, web-based programming platform created by the Lifelong Kindergarten Group at the MIT Media Lab. It was designed specifically for learners between the ages of 8 and 16, making it a perfect fit for JSS 2 students.

On Scratch, you can create interactive stories, games, quizzes, and animations. You build your projects by snapping together blocks of code, adding characters (called sprites), designing backgrounds (called backdrops), and giving instructions using different categories of blocks.

Scratch is available online at scratch.mit.edu and can also be downloaded for offline use as Scratch Desktop. Many schools in Nigeria with computer labs use this platform during Computer Studies classes.


The Scratch Interface



When you open Scratch, you will see several important areas on the screen. Understanding each part is the first step to using the platform confidently.

The Stage is the large white area on the right side of the screen. This is where your animations and projects come to life. Whatever you programme your sprite to do, it happens right here on the stage.

The Sprite Panel is located below the stage. This is where you can see all the characters in your project. Scratch comes with many built-in sprites — animals, people, objects — and you can also draw your own or upload images.

The Backdrop Library is where you choose or design the background of your stage. You can select from existing backgrounds or create one that fits the story you are telling.

The Blocks Palette is the colourful panel on the left side of the screen. It contains all the instruction blocks grouped into categories. Each category has a different colour to make it easy to identify.

The Scripting Area or Code Area is the empty space in the middle where you drag and arrange your blocks to write your program.

The Green Flag and Red Stop Button are at the top of the stage. Click the green flag to run your program and the red button to stop it.


Categories of Blocks in Scratch



Scratch organises its blocks into ten main categories, each represented by a specific colour. Understanding these categories helps you find the right block quickly when building your project.

Motion blocks are blue and control how your sprite moves around the stage. You can use them to make a character walk, turn, glide, or jump to a specific position.

Looks blocks are purple and control what your sprite looks like. You can change its size, switch between costumes, show or hide it, and make it say things in a speech bubble.

Sound blocks are pink and allow you to play music, sound effects, or record audio. You can set the volume and use different sounds to make your project more engaging.

Events blocks are yellow and act as triggers for your program. The most common is the "When green flag clicked" block, which tells your program to start when someone clicks the green flag.

Control blocks are orange and manage the flow of your program. They include loops (repeat an action multiple times), conditionals (if something is true, then do this), and wait blocks that pause a program for a moment.

Sensing blocks are light blue and allow your sprite to detect things around it — like whether it is touching another sprite, whether a key is pressed, or what the mouse pointer is doing.

Operators blocks are green and handle mathematical and logical operations. You can use them to do calculations, compare values, or combine text.

Variables blocks are dark orange and allow you to store and track information in your program, such as a player's score in a game.

My Blocks is a special category where you can create custom blocks to organise your code better.


Creating a Basic Animation in Scratch

Now that you understand the Scratch interface and its block categories, let us walk through how to create a simple animation. This example will help you see how everything fits together.

The goal of this first animation is to make a cat sprite walk back and forth across the stage, just like an animated character in a cartoon.

Step One: Open Scratch

Visit scratch.mit.edu on your school or home computer. You can use Scratch without creating an account, but creating a free account allows you to save your projects. Click on "Create" to start a new project.

Step Two: Meet the Default Sprite

When Scratch opens, you will already see a cat sprite on the stage. This is the default Scratch cat, and it is perfect for our first animation.

Step Three: Add the Starting Block

Click on the Events category in the blocks palette. Find the block that says "When green flag clicked" and drag it into the scripting area. This block tells Scratch that your program should start when the green flag is clicked.

Step Four: Add a Loop

Click on the Control category and find the "forever" block. Drag it and attach it below the "When green flag clicked" block. The forever block creates an endless loop — everything you place inside it will keep repeating as long as the program is running. This is how cartoon characters keep moving without stopping.

Step Five: Add Movement

Click on the Motion category. Find "move 10 steps" and drag it inside the forever loop. This will make the cat move 10 steps forward every time the loop runs.

Now, also from Motion, drag in the "if on edge, bounce" block and place it below the "move 10 steps" block, still inside the forever loop. This block makes the cat turn around whenever it reaches the edge of the stage, so it walks back and forth instead of disappearing off the screen.

Step Six: Animate the Legs

To make it look like the cat is actually walking, you need to switch between its costumes. Click on the Looks category and drag the "next costume" block into the loop as well. This switches between the cat's two built-in costumes, creating the illusion of leg movement — just like frames in a cartoon.

Step Seven: Run the Animation

Click the green flag at the top of the stage. Watch as your cat walks back and forth across the screen with animated legs. Congratulations — you have just created your first block-coded animation.


Making the Animation More Creative

Once you have the basic animation working, you can make it more interesting. Here are a few easy improvements:

Add a background by clicking on the backdrop area at the bottom right of the screen. Choose something fun like a Nigerian market scene, a school compound, or a sports field to give your animation a local feel.

Change the sprite by deleting the cat and choosing a different one from the Scratch library. You could use a person, an animal, or even design your own character.

Add a sound by using Sound blocks to play background music or a sound effect when the sprite moves.

Make it interactive by using Events blocks to make things happen when a key is pressed. For example, pressing the spacebar could make the sprite jump, or pressing the left and right arrow keys could control its direction.


Practical Applications of Block Coding

Block coding is not just a school subject — it connects directly to real-world technology and opportunities.

Nigerian software developers and animators use programming concepts introduced through block coding every day. When a Nigerian startup builds a mobile app or when a creative agency produces a short animated explainer video for a brand, the underlying logic — sequencing, loops, conditionals — is the same logic students learn in Scratch.

Students across Lagos, Abuja, and other Nigerian cities who have learned Scratch have gone on to create educational games for learning mathematics, Yoruba, Igbo, and Hausa vocabulary games, and even simple quiz applications for their classmates. These are real, meaningful projects that start with the exact skills covered in this lesson.

Block coding also builds the foundation for learning languages like Python, Java, and JavaScript later in secondary school and university. Many Nigerian universities, including the University of Lagos and Obafemi Awolowo University, now require some level of programming knowledge from Computer Science students — and it often starts with concepts learned in tools like Scratch.


Advantages and Disadvantages of Block Coding

Like any tool or method, block coding comes with both strengths and limitations.

Starting with the advantages, block coding eliminates the frustration of syntax errors, which can discourage beginners from continuing to learn. It makes abstract programming concepts visual and tangible, which helps students understand logic more easily. It is free and accessible — Scratch works on most computers and even on tablets. It encourages creativity, as students are not just following instructions but designing their own projects. It also makes learning collaborative since students can share projects online and remix each other's work.

On the other hand, block coding has some limitations. It is not as powerful as text-based languages when it comes to building complex professional software. Experienced programmers may find it restrictive because you can only do what the existing blocks allow. It also requires a computer or tablet, which not all Nigerian students have easy access to at home. Additionally, because it is so visual and easy to use, some students may struggle when they eventually transition to text-based programming and encounter its stricter rules.


Safety and Ethical Considerations

When using Scratch, especially its online version, students should keep certain digital safety principles in mind.

Never share personal information like your full name, home address, phone number, or school name in your Scratch profile or project descriptions. Use a username that does not reveal who you are.

Be respectful when interacting with other Scratch users in the community. Do not bully, insult, or share inappropriate content. Scratch has community guidelines that all users are expected to follow.

When you use or remix another person's project, always give credit. If someone else created the sprite or music you are using, acknowledge them in your project notes. This is a matter of honesty and intellectual respect.

Avoid spending too much time on Scratch at the expense of other subjects or responsibilities. Technology is a tool — use it wisely and in balance with everything else in your life.


Classroom and Home Activities

Activity One: Walking Character Animation

Using Scratch, create a simple animation where any sprite of your choice walks across the stage. Add a background from the library and a sound effect. Show your classmates when done.

Activity Two: Storytelling with Scratch

Create a short animated story of at least three scenes using at least two sprites and different backdrops. The story can be about a day at a Nigerian market, a school sports day, or any creative topic of your choice.

Activity Three: Spot the Block

Your teacher will show screenshots of Scratch scripts on the board. Students must identify which category each block belongs to and explain what it does. This builds familiarity with block types.

Activity Four: Remix and Improve

Visit scratch.mit.edu, find a shared public project, and remix it by adding at least two new features. Describe in writing what changes you made and why.


Assessment Questions

Objective Questions

  1. What is block coding? a) Writing code using a keyboard b) Using visual puzzle-like blocks to create programs c) Drawing pictures on a computer d) Typing HTML into a browser

  2. Which of the following is the most popular platform for block-based coding? a) Microsoft Word b) Python IDLE c) Scratch d) Notepad

  3. What does the "forever" block in Scratch do? a) Stops the program immediately b) Repeats the blocks inside it endlessly c) Saves the project automatically d) Changes the sprite's costume

  4. What is a sprite in Scratch? a) A background image on the stage b) A character or object that can be programmed c) A sound file d) A category of blocks

  5. Which block category would you use to make a sprite move across the stage? a) Looks b) Sound c) Motion d) Variables

Theory Questions

  1. Explain the difference between block coding and text-based coding. Give two advantages of block coding for a JSS 2 student.

  2. Describe the steps involved in creating a simple walking animation in Scratch. Use at least four steps in your answer.

  3. Mention three safety rules a student should follow when using Scratch online, and explain why each rule is important.


Summary

In this lesson, we learned that block coding is a visual approach to programming where colourful blocks replace written code. Scratch, developed by MIT, is the most widely used block coding platform for young learners. The Scratch interface includes the stage, sprite panel, blocks palette, and scripting area. Blocks are organised into categories like Motion, Looks, Sound, Events, and Control, each serving a different function. To create a basic animation, you use blocks like "When green flag clicked," "forever," "move 10 steps," "if on edge, bounce," and "next costume." Block coding has real-world applications in software development, game design, and digital creativity, and it builds the foundation for more advanced programming.


Conclusion

Block coding is one of the most exciting entry points into the world of technology and programming. For JSS 2 students in Nigeria, learning to use Scratch is not just about passing Computer Studies exams — it is about developing a mindset that can solve problems, create solutions, and build things that matter.

The skills you gain from block coding — logical thinking, sequencing, creativity, and perseverance — are skills that will serve you far beyond the classroom. As Nigeria continues to grow its technology sector, with hubs like Yaba Tech Cluster in Lagos and Abuja's rising startup scene, young people who understand programming will have a real edge.

Start small. Create your first animation. Then keep building. The world of technology is wide open for you.


Frequently Asked Questions

What is block coding in simple terms?

Block coding is a way of giving instructions to a computer using colourful visual blocks that snap together like puzzle pieces. Instead of typing code, you drag and connect blocks to tell the computer what to do.

Is Scratch free to use for Nigerian students?

Yes, Scratch is completely free. You can use it online at scratch.mit.edu without paying anything. You can also download the Scratch Desktop app for offline use, which is helpful if your internet connection is unreliable.

Do I need to know mathematics to learn block coding?

Not at an advanced level. Basic knowledge of numbers and logic is helpful, but Scratch is designed to be accessible even to learners who are not strong in maths. As you progress, you will naturally pick up simple arithmetic and logical thinking.

Can I use Scratch on a phone or tablet?

Scratch works best on a computer or laptop, but the online version can be accessed on some tablets. It is not fully optimised for smartphones, so a computer or tablet with a keyboard is recommended for the best experience.

What careers can block coding lead to?

Learning block coding builds skills that lead to careers in software development, mobile app development, game design, animation, web development, and artificial intelligence. These are growing fields with strong job opportunities in Nigeria and globally.

How is block coding different from what professional programmers do?

Professional programmers use text-based languages like Python, Java, or JavaScript, which offer more power and flexibility. Block coding is a beginner-friendly introduction to the same concepts. Many professional developers started with tools like Scratch before moving to advanced languages.

I am Echofu George Adah, the Pioneer of Digital Tech Note and the Founder and Chief Executive Officer of GeoWeb Technologies Limited, an information technology company committed to providing cutting-edge ICT solutions.