Główna zawartość
Zasoby dla nauczycieli i rodziców
Kurs: Zasoby dla nauczycieli i rodziców > Rozdział 1
Lekcja 4: Nauczyciele programowania komputerowego- Program nauczania programowania - przegląd
- Śledzenie postępów uczniów w programowaniu
- Znajdowanie błędów w kodzie
- Programowanie parami w klasie
- Wskazówki dla nauczycieli: podstawy rysowania w JS
- Wskazówki dla nauczycieli: kolorowanie w JS
- Wskazówki dla nauczycieli: zmienne w JS
- Wskazówki dla nauczycieli: podstawy animacji w JS
- Wskazówki dla nauczycieli: interaktywność w JS
- Wskazówki dla nauczycieli: skalowanie za pomocą zmiennych w JS
- Wskazówki dla nauczycieli: tekst i zmienna tekstowa w JS
- Wskazówki dla nauczycieli: funkcje w JS
- Teaching guide: Intro to JS - Logic and if statements
- Teaching guide: Intro to JS - Looping
- Teaching guide: Intro to JS - Arrays
- Teaching guide: Intro to JS - Objects
- Teaching guide: Intro to JS - Object-oriented design
- Materiały informacyjne na temat programowania
- Dodatkowe projekty z programowania
- Propozycje planów lekcji: nauka programowania w klasie
- Przykłady dobrych praktyk: projekty interdyscyplinarne
- Studium przypadku - programowanie: Wyjdź poza program nauczania KA
- Przykłady dobry praktyk: nauka programowania w szkole podstawowej
© 2023 Khan AcademyWarunki użytkowaniapolitykę prywatnościInformacja o plikach cookie
Teaching guide: Intro to JS - Logic and if statements
This is a teaching guide for the Intro to JS course, for the tenth unit on Logic and if statements.
Czego uczniowie się nauczą
- How to use
if
/else
statements in their programs to execute different lines of code based on whether certain conditions are true. - How to use logical operators to evaluate to true/false values -
&&
,||
,===
,!==
,<
,>
,<=
,>=
. - How to store booleans in variables, to hold
true
/false
values. - How to use the global ProcessingJS boolean variable
mouseIsPressed
to check if the user is pressing the mouse, to help make interactive aspects like buttons.
Uczniowie nauczą się pisać kod taki jak:
Z czym uczniowie mają kłopoty
- For many students, this may be their first introduction to logic - reasoning about whether statements are true or false, and making complex expressions using AND and OR to result in truthiness and falsiness. If students are struggling with logic, encourage them to think carefully through each conditional expression, like by writing it down on a sheet of paper and annotating each part of the expression with true or false.
- Students often take time to figure out how to put together multiple
if
/else
statements in the most logical way - they might forget to useelse
when they want exclusivity, or they may sequence theirif
/else
conditions in a flow that doesn’t result in what they want. Once again, encourage them to slow down and reason about how they want their program to work. Also, prompt them to think through all the possible values that could flow through the logic. Oftentimes, programmers (new and old!) forget to think about the "edge cases" in their logic. - Students may struggle with all the new syntax, like incorrectly putting semi-colons after the
if
statement and mistyping the operators incorrectly (e.g.&
instead of&&
&
may work, but it’s actually a different, more advanced operator).
Dodatkowe materiały: zadania nie wymagające komputera
Zadanie "bez komputera" jest zadaniem, które twoi uczniowie mogą wykonać bez potrzeby używania komputera. Mogą pomagać w przekazaniu pomysłów w bardziej instynktowny sposób lub być aktywnością zapasową, gdy komputery z jakiegoś powodu przestaną działać.
Code.org offers a Coding with Cards activity (see overview video and lesson plan).
Dodatkowe materiały: pytania do dyskusji
Są to pytania, które możesz zadać uczniom indywidualnie, gdy ukończą ten samouczek lub poprowadź dyskusję grupową, jeżeli każdy ukończył samouczek do tego samego momentu.
- Where do you use logic in every day life? What variables would you use to program that logic? (Examples for prompts: deciding what to wear outside, deciding what form of transport to use, deciding what to eat)
Dodatkowe materiały: pytania i ciekawostki
Te pytania mogą być ciekawym zajęciem po tym, jak każdy uczeń ukończył samouczek. Mogą także prowadzić dyskusję na temat pytań, które sprawiły im trudność. Zagraj z nimi na Quizizz.
Chcesz dołączyć do dyskusji?
Na razie brak głosów w dyskusji