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

South Africa - Ntshembo Hlongwane - #29

Closed
Ntshembo-Hlongwane1 wants to merge 5 commits into
CodeYourFuture:masterfrom
Ntshembo-Hlongwane1:master
Closed

South Africa - Ntshembo Hlongwane#29
Ntshembo-Hlongwane1 wants to merge 5 commits into
CodeYourFuture:masterfrom
Ntshembo-Hlongwane1:master

Conversation

@Ntshembo-Hlongwane1

@Ntshembo-Hlongwane1 Ntshembo-Hlongwane1 commented Jan 17, 2021

Copy link
Copy Markdown

Your Details

  • Your Name: Ntshembo
  • Your City: Cape Town
  • Your Slack Name: Ntshembo Hlongwane

Homework Details

  • Module: JS-CORE1
  • Week:1

@JarrodBen JarrodBen 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.

I like the way you step away from a changeable var to a const in some instances, good way of looking at things and solving them, I would suggest trying to give the answers that some exercises are looking for and experiment with the exercises in your own time just to be safe, and you do understand what is expected of you with this exercise, well done.

@Ntshembo-Hlongwane1

Copy link
Copy Markdown
Author

I would suggest trying to give the answers that some exercises are looking for

@JarrodBen Thanks for the review I will look into what you said but you loosing me a bit here (The sentence above) please open it up a bit for me thanks

@JarrodBen

JarrodBen commented Jan 20, 2021

Copy link
Copy Markdown

I think the answers that they are looking for is in the readme files of each of the exercises, but it's good that you also experimented with the code as well, that's all.

@Ntshembo-Hlongwane1

Copy link
Copy Markdown
Author

I did give answers from the Readme.md file which exercise did I give an answer not stated in the Readme.md file would be helpful to know

const util = require("util");

function test(test_name, actual, expected) {
let status;

@sirpfaira sirpfaira Jan 21, 2021

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 edited the test runs??? You are extra-ordinary.

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.

No I never thouched those Unit Tests written the

// Add comments to explain what this function does. You're meant to use Google!

/**
* @description Function concatenates 2 values together

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is excellent. You gonna create libraries that we will re-use very soon. Keep it up

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.

Thanks a lot bro appreciate it

@bradleymubenga777

Copy link
Copy Markdown

Great work bro! everything is awesome on the technical side, however check your pull request comment you did not fill in the week and module fields.

@Ntshembo-Hlongwane1

Copy link
Copy Markdown
Author

Great work bro! everything is awesome on the technical side, however check your pull request comment you did not fill in the week and module fields.

@bradleymubenga777 Thanks man slipped my mind I will fill in those things now

Comment thread extra/3-magic-8-ball.js
function checkAnswer(answer) {
//Write your code in here

const possibleAnswers = [

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why do we have an array with 1 object, as opposed to just having an object?

Comment thread extra/3-magic-8-ball.js
];

let status = '';
possibleAnswers.forEach((array) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

how many times will this forEach iterate?

Comment thread extra/3-magic-8-ball.js
}

if (array.veryNegative.includes(answer)) {
status = 'very negative';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

if the answer is found in "first" condition, it will continue to run down to this line, how can we stop this?


function getTotal(a, b) {
total = a ++ b;
const total = a + b;

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 job with const!

@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