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

London_9_Meysam-Arshadi_ JavaScript-Core-1-Coursework-Week_01 - #432

Open
Meysam-Arshadi wants to merge 2 commits into
CodeYourFuture:masterfrom
Meysam-Arshadi:master
Open

London_9_Meysam-Arshadi_ JavaScript-Core-1-Coursework-Week_01#432
Meysam-Arshadi wants to merge 2 commits into
CodeYourFuture:masterfrom
Meysam-Arshadi:master

Conversation

@Meysam-Arshadi

@Meysam-Arshadi Meysam-Arshadi commented Nov 23, 2022

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: Meysam Arshadi
  • Your City: London
  • Your Slack Name: Meysam-Arshadi

Homework Details

  • Module:
    JavaScript-Core-1-Coursework
  • Week: 01

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

@ghost

ghost commented Nov 25, 2022

Copy link
Copy Markdown

Good job!!

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you don't need to overwrite the variable. You can just go : return (variable * 3)

@@ -1,4 +1,7 @@
// Declare your function first
function divide(a, b) {
return (divide = a / b);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same here

function getTotal(a, b) {
total = a ++ b;
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.

just as side note, it is also possible to use interpolation if that is more practical
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

Comment thread mandatory/4-tax.js
function addTaxAndFormatCurrency() {}
function addTaxAndFormatCurrency(price) {
const itemTax = (price * 20) / 100;
const total = itemTax + price;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

as chatted int he meeting you could have used: calculateSalesTax(price)

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.

2 participants