This repository was archived by the owner on Jun 24, 2023. It is now read-only.
Split first JavaScript lesson in two#15
Open
outoftime wants to merge 3 commits intoitscodenation:masterfrom
Open
Split first JavaScript lesson in two#15outoftime wants to merge 3 commits intoitscodenation:masterfrom
outoftime wants to merge 3 commits intoitscodenation:masterfrom
Conversation
c09d019 to
28fe673
Compare
added 3 commits
November 7, 2015 17:50
Reworked first lesson plan based on structure used successfully at GWHS, with focus on values, expressions, and the relationship between the two.
* Tie it back in to values & expressions lesson * Spell out steps for declaring a variable and assigning it a value * Practice using variables in expressions
28fe673 to
5fc82b4
Compare
Author
There was a problem hiding this comment.
“Instantiate” is typically used to describe the process of creating a new instance of a class or prototype—it doesn’t have any relation to the material in this lesson.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first JavaScript lesson in the canonical curriculum covers a lot of ground. This pull request breaks that lesson in two, with variables introduced in the second of the two.
The first lesson focuses on the concept of expressions, which are defined as pieces of code that produce a value. I suspect that this idea is so intuitive to experienced programmers that we forget how foreign it is to novice students. Without a solid understanding of expressions, much of what comes later is incomprehensible: using variables, the return value of functions, etc. all rely on the concept that a piece of code often represents a value that is not literally written in the code.
So, I think it’s worth taking a really slow roll.
The second lesson covers variables, but within the conceptual framework of expressions and values that was introduced in the first lesson.
A few notes:
console.logfrom the lessons. In my experience,console.logis a source of tremendous confusion for the students, at least if it’s introduced early on. The median student in my class last year never grasped the difference betweenconsole.logand doing actual manipulation of the page.