learn-co-curriculum / arrow-functions-discussion-questions Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
https://learning.flatironschool.com/courses/5185/discussion_topics/13539?module_item_id=396081
Is this example supposed to appear twice? The two entries seem identical and it doesn't seem valuable for people to examine for differences/similarities for identifying they are the same thing. UNLESS: people should be on the lookout for duplicates entering the codebase, and recognizing such is a skill.(?)
const playMusic = (music) => {
return "Playing some " + music;
};
playMusic("Jazz"); // "Playing some Jazz"
const playMusic = (music) => {
return "Playing some " + music;
};
playMusic("Jazz"); // "Playing some Jazz"
No response
remove one of the two identical examples. Or maybe the second instance was supposed to have some slight difference?
markdownlint
https://learning.flatironschool.com/courses/4992/discussion_topics/12999
Code is duplicated:
const playMusic = (music) => {
return "Playing some " + music;
};
playMusic("Jazz"); // "Playing some Jazz"
const playMusic = (music) => {
return "Playing some " + music;
};
playMusic("Jazz"); // "Playing some Jazz"
No response
Just take out the duplicate code, these lines here
https://learning.flatironschool.com/courses/5220/discussion_topics/14199
The Canvas page for this DQ does not display the same as the markdown of the README. On Canvas, we see:
const playMusic = (music) => "Playing some " + music;
playMusic("Jazz"); // "Playing some Jazz"
const playMusic = (music) => "Playing some " + music;
playMusic("Jazz"); // "Playing some Jazz"
but the markdown correctly has:
const playMusic = (music) => "Playing some " + music;
playMusic("Jazz"); // "Playing some Jazz"
const playMusic = music => "Playing some " + music;
playMusic("Jazz"); // "Playing some Jazz"
omitting parentheses around the parameter.
There are also 9 function examples on the Canvas page compared to 8 on the markdown.
No response
Is the Canvas page reading from an older source for it's markdown, but the Github link comes to this repo?
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.