learn-co-curriculum / phase-1-control-flow-lab Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Flagged by @mlgvla in Slack:
Hi - I just helped a student on the current phase-1-control-flow-lab, and noticed that it's missing a range of numbers. This is the current code:
function scuberGreetingForFeet (feet) {
if (feet <= 400) {
return 'This one is on me!';
} else if (1999 < feet && feet < 2500) {
return "I will gladly take your thirty bucks.";
} else {
return "No can do.";
}
}
There is no condition in for numbers between 400 and 2000. If I were to pass in, say, 500, the it will say "No can do." I don't know, I certainly would take a rider who wanted to travel between 400 and 2000 feet - charge them, maybe $20 or something (based on these rates!)
Would it be possible to add this range to the deliverables and put in a testing condition for it? It might make the logic flow better to a student.
No response
No response
https://learning.flatironschool.com/courses/4985/assignments/163563?module_item_id=351890
Fork button at my Canvas account does not link me to GitHub account
Fork button at my Canvas account does not link me to GitHub account
No response
https://learning.flatironschool.com/courses/7741/assignments/278298?module_item_id=675984
To my knowledge, the break is a best-practice use for switch statements to ensure no unintended cases match. This test does not work for the switch if you include a break after each case, but it should still have the same outcome.
I may have a gap in my knowledge here, but I couldn't find anything in the coursework addressing this. If so, please let me know so I do not go on mistaken.
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.