Comments (7)
I agree, it seems like an odd choice.
Unreachable code and variable scope should be taught separately.
from freecodecamp.
@naomi-lgbt or @Ksound22 ?
Are either of you free to make these updates?
I don't want to open a PR right before I go on vacation.
Thanks 👍
from freecodecamp.
ugh, I just saw step 52. I don't understand why step 51 would -implicitly- suggest that a person should create a new variable after the return only to point it out as wrong in the next step. step 51 should show us that a 'correct' declaration of the variable in a local scope will result in a ref. error when the variable is referenced beyond that scope.
As for teaching people not to put code after the return, that should be a -separate- and -unrelated- step in this case.
on the other hand, step 51 could -explicitly- tell people to put the new line of code after the return only to point out it is incorrect in step 52. At least this way, if a person knows enough to type it in correctly, step 51 could fail and make them type it into the wrong spot? (or just scratch this and take my original suggestion of fixing step 51 and teaching about not writing code after returns separately)
from freecodecamp.
@naomi-lgbt or @Ksound22 ?
Are either of you free to make these updates?
I don't want to open a PR right before I go on vacation.
Thanks 👍
Can we open it up for contribution?
from freecodecamp.
I'd prefer to see the instructions updated to specify putting the variable after the return - I think it's valuable information to teach.
from freecodecamp.
This is the first time campers will be taught about variable scope. They may have coded for less than half a day.
Adding unreachable code as part of teaching variable scope can muddy the water for the learner, where they may end up making a correlation between the two that doesn't exist.
I would suggest we split it up into separate steps that focus on each topic.
from freecodecamp.
I could work with that, yes
from freecodecamp.
Related Issues (20)
- Typo in Step 43 of Building a Cipher HOT 4
- js beta rpg step 23 - code check doesn't accept shorthand margin specification HOT 1
- Wrap keywords inside backticks in Step 51 of Building a Cipher HOT 1
- 1111
- Contributing guidelines landing page redirects to incorrect link HOT 3
- js beta build a RPG step 150 and step 151 can be combined HOT 3
- No link to go back to homepage HOT 2
- Update step 18, 28, 38 hints for calorie counter project HOT 5
- [Building a Cipher] Introduction to code comment seems to be out of sequence HOT 2
- GitPod doesn't allow creationg of account from many countries
- GET /api/users/exists?username=...
- Cracking the coding interview section for FreeCodeCamp HOT 2
- SCWP(Beta) - Learn Classes and Objects by Building a Sudoku Solver - Step 73: Accepting wrong solution HOT 1
- RD Certification - Learn Git by Building an SQL Reference Object: Typo HOT 3
- Adding Labels to learning content in tutorials
- Submit and go to next challenge button Hover effect not working HOT 6
- Getting JS Certificate HOT 1
- Nutrition Table - Step 4 | insufficient test case HOT 1
- Monaco Vim Support HOT 3
- Inconsistent uses of "a" and "an" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecodecamp.