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

solve the errors | London10 | Seyyednavid Hejazijouybari | Javascript | week1 - #472

Open
seyyednavid wants to merge 13 commits into
CodeYourFuture:masterfrom
seyyednavid:master
Open

solve the errors | London10 | Seyyednavid Hejazijouybari | Javascript | week1 #472
seyyednavid wants to merge 13 commits into
CodeYourFuture:masterfrom
seyyednavid:master

Conversation

@seyyednavid

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?

@seyyednavid seyyednavid changed the title solve the errors |Seyyednavid Hejazijouybari | Javascript | week1 solve the errors | London10 | Seyyednavid Hejazijouybari | Javascript | week1 Feb 16, 2023
Comment thread mandatory/3-function-output.js Outdated
Comment thread mandatory/3-function-output.js Outdated
Comment thread extra/1-currency-conversion.js Outdated

function convertToUSD() {}
function convertToUSD(PoundAmount) {
let usdAmount = (PoundAmount * 1.4)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a reason you're using let instead of const?
if you're not going to reassign the value again, you should always declare variables with const as a general rule

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 Seyoung for your guidance. I'll changed it.

*/

function convertToBRL() {}
function convertToBRL(PoundAmount) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

recommend to use lower case for parameter

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.

I corrected.

Comment thread extra/3-magic-8-ball.js
...positive,
...negative,
...veryNegative,
];

@SeyoungJoo SeyoungJoo Feb 20, 2023

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cool. spread operator 👍🏻

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 extra/2-piping.js
/* BETTER PRACTICE */

let goodCode =
let goodCode = "£".concat((startingValue * 12));

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 job 👍🏻

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.

3 participants