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

Challenges 1-3 Are Passing Test #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Challenges 1-3 Are Passing Test #3

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 12, 2020

No description provided.

@@ -13,11 +13,24 @@
@Test - Write a console.log that shows the value of `increaseLevel(10)`
*/

function increaseLevel(valuePassed) {
valuePassed++
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on the shorthand syntax.

/*
@Challenge 02 - Write a function named `makeEchoes` that loops for the number of times indicated and console.log's "Echo!" in each loop
@Example - Sending the function a value of 5 will result in 5 "Echo!"'s in the terminal
@Test - Make a function call of `makeEchoes(5)`
*/
function makeEchoes (x) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. Consider avoiding single letter variables in favor or more meaningful names.

/*
@Challenge 04 - Write a function named `showTheFifties` that loops from 1 to 200.
Use a condition in the loop to console.log the number when it is over 49 and under 60
@Example - Expect to see 50, 51, 52, 53, 54, 55, 56, 57, 58, 59 in the terminal
@Test - Make a function call of `showTheFifties()`
*/
function showTheFifties(x) {
let i;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra let statement here on 61. Not harmful. Not needed though so making note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants