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

london-10-shadi-fakhri-javascript-core-1-coursework-week1 - #500

Open
Shadi38 wants to merge 7 commits into
CodeYourFuture:masterfrom
Shadi38:master
Open

london-10-shadi-fakhri-javascript-core-1-coursework-week1#500
Shadi38 wants to merge 7 commits into
CodeYourFuture:masterfrom
Shadi38:master

Conversation

@Shadi38

@Shadi38 Shadi38 commented Feb 19, 2023

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:shadi
  • Your City:london
  • Your Slack Name:shadi fakhri

Homework Details

  • Module:core-1-course-week-1
  • Week:1

Notes

  • What did you find easy?

  • What did you find hard?

  • finding errors

  • What do you still not understand?

  • Any other notes?

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

Good job on completing the coursework! Let me know if you have any further questions on my comments!


function convertToUSD() {}
function convertToUSD(price) {
let total=price * 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.

I really like how clear you've made this .


function convertToBRL() {}
function convertToBRL(price) {
let total=parseFloat((((price/100)*99)*5.7).toFixed(2));

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 think this is doing quite a lot on one line. Adding an extra line with a variable could make this more clear.

Comment thread mandatory/4-tax.js

function addTaxAndFormatCurrency() {}
function addTaxAndFormatCurrency(price) {
total=calculateSalesTax(price).toFixed(2)

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 use of .toFixed()

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

This function should expect to be called with any value which was returned by the shakeBall function.
*/
function checkAnswer(answer) {

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 job! Nice and clean:)

return `Hello, my {name}` is "and I am $age years old`;

function introduceMe(name, age){
return `Hello, my name is ${name} and I am ${age} years old`;

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 that you have used string interpolation here, nice!

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.

1 participant