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

ZA2-Anthony Mogotlane-JavaScript Core 1 Coursework-W1 - #287

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

ZA2-Anthony Mogotlane-JavaScript Core 1 Coursework-W1#287
AnthonyMogotlane wants to merge 9 commits into
CodeYourFuture:masterfrom
AnthonyMogotlane:master

Conversation

@AnthonyMogotlane

@AnthonyMogotlane AnthonyMogotlane commented Jun 29, 2022

Copy link
Copy Markdown

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

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

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?


View rendered exercises/G-numbers/README.md
View rendered exercises/K-functions-parameters/README.md
View rendered exercises/L-functions-nested/README.md

Comment thread extra/3-magic-8-ball.js Outdated
"negative",
"very negative",
]);
// expect(checkAnswer(answer)).toBeOneOf([

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I believe you were not supposed to comment all that code work or modify it as per instructions

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.

You are right, I'll rectify that. Thanks.

Uncommented a unit test and add a test runner: jest-extended.
Add extra-test script

@dschouw-CYF dschouw-CYF 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.

Well done on completing the required coursework as well as the additional exercises Anthony

var numberOfMentors = 8;

function percentageCalc(number) {
return Math.round((number/(numberOfMentors + numberOfStudents)) * 100) + "%";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work Anthony!

Comment thread extra/2-piping.js
/* BETTER PRACTICE */

let goodCode =
let goodCode = add(startingValue, 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.

Good work on completing the additional exercise as well Anthony.
You may also consider combining all the function calls into one expression as follows:
let goodCode = format(multiply(add(startingValue, 10), 2));

Comment thread extra/3-magic-8-ball.js
*/
function checkAnswer(answer) {
//Write your code in here
if (veryPositive.includes(answer)) return "very positive";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Array methods already ? 💯

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.

4 participants