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

LONDON CLASS_9-SAGHAR_HOSSEINMARDI_ JAVASCRIPT-CORE-1-WEEk1 - #448

Open
SagharHosseinmardi wants to merge 4 commits into
CodeYourFuture:masterfrom
SagharHosseinmardi:master
Open

LONDON CLASS_9-SAGHAR_HOSSEINMARDI_ JAVASCRIPT-CORE-1-WEEk1#448
SagharHosseinmardi wants to merge 4 commits into
CodeYourFuture:masterfrom
SagharHosseinmardi:master

Conversation

@SagharHosseinmardi

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?

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

Brilliant! Well done for going after the extra exercises as well.
Great start to Javascript @SagharHosseinmardi , you've got this!

let greetingStart = "Hello, my name is ";

let greeting = greetingStart + name.trim();
let nameLength = name.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.

What if name has whitespace characters round it, will this accurately report the length of the actual name itself?

// Start by creating a variables `numberOfStudents` and `numberOfMentors`
let numberOfStudents = 15;

let numberOfMentors = 8;

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 comment relates to all the uses of let in this PR).

If the variable value isn't going to be changed after its initial assignment, which is better, let or const?

var numberOfStudents = 15;
var numberOfMentors = 8;
let total = numberOfStudents + numberOfMentors;
let studentPercentage = Math.round((numberOfStudents / total) * 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 👏

@@ -1,5 +1,5 @@
function triple(number) {
// complete function here
return number * 6;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Will this triple the value?

Comment thread extra/2-piping.js
let addingNumber = add(startingValue, 10);
let multiplyingNumber = multiply(addingNumber, 2);
let formattingNumber = format(multiplyingNumber);
let goodCode = formattingNumber;

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!

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.

3 participants