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

West Midlands 2 - Jasvir Kaur - JavaScript Core 1 - Week 1 - #18

Closed
JK1320 wants to merge 2 commits into
CodeYourFuture:masterfrom
JK1320:master
Closed

West Midlands 2 - Jasvir Kaur - JavaScript Core 1 - Week 1#18
JK1320 wants to merge 2 commits into
CodeYourFuture:masterfrom
JK1320:master

Conversation

@JK1320

@JK1320 JK1320 commented Dec 10, 2020

Copy link
Copy Markdown

Your Details

  • Your Name: Jasvir Kaur
  • Your City: Walsall
  • Your Slack Name: Jasvir Kaur

Homework Details

  • Module: JavaScript
  • Week: 1

// Start by creating a variable `greeting`

var greeting = "Hello World";
console.log(greeting);

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 is correct but was meant to be outputted 3 times

@@ -1,7 +1,7 @@
function halve(number) {
// complete the 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.

This won't halve the number. It will subtract it by 6. You'd need instead this:

return number / 2;

var mentor3 = "Mimi";
var mentor4 = "Rob";
var mentor5 = "Yohannes";
var mentor5 = "Yohannes"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Be careful of doing stuff like this. You'e took the semi colon away by accident.

Comment thread mandatory/4-tax.js
var addTax = `£${calculateSalesTax(price).toFixed(2)}`;
return addTax;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All tests for all 4 exercises passed 🎉

@github-actions

Copy link
Copy Markdown

Your coursework submission has been closed because nobody has interacted with it in 30 days. You are welcome to re-open it to get more feedback.

@github-actions github-actions Bot added the Stale label May 13, 2021
@github-actions github-actions Bot closed this May 13, 2021
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