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

London class 9- Leila Farsani-JavaScript-Core-1-Week1 - #440

Open
leilafarsani wants to merge 2 commits into
CodeYourFuture:masterfrom
leilafarsani:master
Open

London class 9- Leila Farsani-JavaScript-Core-1-Week1#440
leilafarsani wants to merge 2 commits into
CodeYourFuture:masterfrom
leilafarsani:master

Conversation

@leilafarsani

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: Leila Farsani
  • Your City: London
  • Your Slack Name: Leila Farsani

Homework Details

  • Module: JavaScript-Core-1-Coursework-Week1
  • 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.

Great! Did you have a go at running the tests in mandatory folder as well?

@@ -1 +1,3 @@
console.log("Hello world");
console.log("I am practicing JS.");
console.log("It's \"Nov 2022\"."); No newline at end of file

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, you can either escape the " like you have done here, or wrap the whole string in single quotes '

var numberOfStudents = 15;
var numberOfMentors = 8;
var total = numberOfStudents + numberOfMentors
var percentageOfSudents = (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.

Good use of brackets to prioritise the /

Comment thread mandatory/4-tax.js

function addTaxAndFormatCurrency() {}
function addTaxAndFormatCurrency(price) {
let formattedPriceIncTax = 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.

Great! toFixed is the right thing to use here

@leilafarsani

Copy link
Copy Markdown
Author

Thank you! Yes, I tried it individually for each exercise and it was fine that way!

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.

2 participants