Questions tagged [scope]

This tag is intended for all questions related to name/identifier scoping in the various languages used in teaching. It can also be used for questions concerning the kind of scoping (e.g. lexical v. dynamic).

Filter by
Sorted by
Tagged with
2 votes
2 answers
133 views

First Time teaching 6th & 7th grade computer science

I will be teaching 2 AP CS courses, along with 6th and 7th grade intro to computer science. I'm debating on whether teaching JavaScript (using CodeHS) to 7th graders would be an appropriate ...
user avatar
11 votes
7 answers
369 views

How to illustrate scope problem when creating variables inside `if` statements in Java

One of the problems that my students will stumble upon every year is trying to create or initialize variables within an if/else ...
Ben I.'s user avatar
  • 32.9k