Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate code #4

Closed
ckesurf opened this issue Feb 1, 2022 · 1 comment
Closed

Duplicate code #4

ckesurf opened this issue Feb 1, 2022 · 1 comment
Labels
se curriculum Issue for lessons in the Software Engineering program

Comments

@ckesurf
Copy link

ckesurf commented Feb 1, 2022

Canvas Link

https://learning.flatironschool.com/courses/4992/discussion_topics/12999

Concern

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"

Additional Context

No response

Suggested Changes

Just take out the duplicate code, these lines here

@ckesurf ckesurf added the se curriculum Issue for lessons in the Software Engineering program label Feb 1, 2022
@lizbur10
Copy link
Contributor

lizbur10 commented Feb 2, 2022

Hi @ckesurf ! Thanks for bring this to our attention - the redundant example has been removed 💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
se curriculum Issue for lessons in the Software Engineering program
Projects
None yet
Development

No branches or pull requests

2 participants