Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

South Africa Class_1 - Jonathan Heugh - JavaScript-Core-1 - Week 1 - #41

Closed
Jontas77 wants to merge 9 commits into
CodeYourFuture:masterfrom
Jontas77:master
Closed

South Africa Class_1 - Jonathan Heugh - JavaScript-Core-1 - Week 1#41
Jontas77 wants to merge 9 commits into
CodeYourFuture:masterfrom
Jontas77:master

Conversation

@Jontas77

Copy link
Copy Markdown

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

return greet;
}

var result = myGreeting ('HELLO') + ' ' + mentor1.toUpperCase();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should have put these repeated statements in a method, because the method actually does nothing

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi thank you for your review I will go back and make the necessary changes

@ShawenHarker ShawenHarker left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi Jontas,
Firstly I would like to say your code is super clean bud, well done on that man but on a more serious note, I would like to point your parameters for your functions, can you give it more descriptive names please, as "s" and "m" makes the code a bit harder to read, especially if you doing a quick scan through your code, other than that, well done man.

Keep up the good work!!!

// Add comments to explain what this function does. You're meant to use Google!
// This function get a random number between 0 and 1 inclusive 0 but not 1 multiply by 10
function getNumber() {
return Math.random() * 10;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey there great stuff on the previous work however....

  • So when you use Math.random() * 10 this won't really guarantee giving you whole number 1-10 (Note the question was ambiguous as to are floating number required but if for instance only whole numbers were needed) this would not generate one from what I know I stand to be corrected

  • To generate random whole number from 0-10 code would look like this below:

Math.floor(Math.random() * 10)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi Ntshembo thank you for your review I will go back and make the necessary changes.

@Jontas77

Copy link
Copy Markdown
Author

Hi Jontas,
Firstly I would like to say your code is super clean bud, well done on that man but on a more serious note, I would like to point your parameters for your functions, can you give it more descriptive names please, as "s" and "m" makes the code a bit harder to read, especially if you doing a quick scan through your code, other than that, well done man.

Keep up the good work!!!

Hi Shawen thank you for your review I will go back and make the necessary changes.

Add changes to C-variables, L-functions and  extra exercises 1 and 2

@ezekiel444 ezekiel444 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice one. But everything seems so unreal with the consistent deletion of questions, instructions and even test cases then pasting of answers.

@ezekiel444 ezekiel444 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

extra-2-piping: "const startingValue = 2 + 10; let result = startingValue * 2; let formatResult = '£' + result"; bad practice to define everything in same line. Nice work.

Comment thread extra/2-piping.js
return '£' + numC.toString();
}

const startingValue = 2 + 10; let result = startingValue * 2; let formatResult = '£' + result;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it is bad practice to define everything on a single line

@github-actions

Copy link
Copy Markdown

Your coursework submission has been closed because nobody has interacted with it in six weeks. You are welcome to re-open it to get more feedback.

@github-actions github-actions Bot added the Stale label May 13, 2021
@github-actions github-actions Bot closed this May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants