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

wm3/halla_Sulaiman-JavaScript-core1-week1 - #202

Closed
Halla-S wants to merge 6 commits into
CodeYourFuture:masterfrom
Halla-S:master
Closed

wm3/halla_Sulaiman-JavaScript-core1-week1#202
Halla-S wants to merge 6 commits into
CodeYourFuture:masterfrom
Halla-S:master

Conversation

@Halla-S

@Halla-S Halla-S commented Aug 13, 2021

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: Halla Sulaiman
  • Your City: Wolverhampton
  • Your Slack Name: Halla Sulaiman

Homework Details

  • Module: JavaScript-core1
  • Week: week 1

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

@Professional-Kate Professional-Kate 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.

These are all super simple and petty things, but that's because your code is already amazing. Amazing work, but a couple of small changes 🎉

console.log(message);
const myName = " Daniel ";
let myNewName = myName.trim();
let message1 = myNewName.length;

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'd like to see a more explicit variable name for this. Just so you can read the script and see exactly what this variable does, something like let newNameLength = myNewName.Length; or something better

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 , thank you .

Comment thread exercises/B-hello-world/exercise.js Outdated
@@ -1 +1,6 @@
console.log("Hello world");
console.log("Hello World. I just started learning JavaScript!.");
console.log(Hello World. I just started learning JavaScript!.); // got a SyntaxError for this one .

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do you know why you got a SyntaxError for this line?

@Halla-S Halla-S Aug 15, 2021

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.

Yes, Strings should be inside double or single quotes . The line above is the correct one , this line should've been commented out or deleted as it was originally there as a apart of the homework to be corrected I think . I forgot to do so .

@@ -1,3 +1,16 @@
// Start by creating a variable `message`
let myName = " Halla ";
let message = myName.length;

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'd like to see a more explicit variable name, while this works perfectly, it's harder to manage and read

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.

Thank you

Comment thread exercises/F-strings-methods/exercise.js
Comment thread extra/3-magic-8-ball.js

function shakeBall() {
//Write your code in here
expectedAnswers = [

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 variable is missing a const or let declaration

@Halla-S Halla-S Aug 15, 2021

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.

Thank you Kate .As you can see , I declared it first outside of the function which makes it global . Then I changed my mind and moved it to the inside of the function without declaration , just trying to see if this would make it global from the inside of the function to be able to use it in the other function . tried both ways and both work .

@Krishan09

Copy link
Copy Markdown

Great work halla.

@github-actions

github-actions Bot commented Oct 3, 2021

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 Oct 3, 2021
@github-actions github-actions Bot closed this Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants