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

First attempt. - #150

Closed
Fareedh-12 wants to merge 1 commit into
CodeYourFuture:masterfrom
Fareedh-12:master
Closed

First attempt.#150
Fareedh-12 wants to merge 1 commit into
CodeYourFuture:masterfrom
Fareedh-12:master

Conversation

@Fareedh-12

Copy link
Copy Markdown

Failed to do the third exercise in extra. That is margic-8-ball.js

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: Fareedh Yawe
  • Your City: Glasgow
  • Your Slack Name: Fareedh

Homework Details

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

Notes

  • What did you find easy? Attempting all the exercise was easy.

  • What did you find hard?Understanding the instructions.

  • What do you still not understand? How to use the tests given and also the three margin ball exercise.

  • Any other notes?

Failed to do the third exercise in extra. That is margic-8-ball.js
@@ -1,16 +1,18 @@
// There are syntax errors in this code - can you fix it to pass the tests?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💯

@@ -1,16 +1,19 @@
// The syntax for this function is valid but it has an error, find it and fix it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💯

@@ -1,16 +1,23 @@
// Add comments to explain what this function does. You're meant to use Google!
function getRandomNumber() {
// This gets a random number between 0 and 1(excluded) and multiplies it by 10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💯 totally correct .. in other words returns a number between 0 and 9.99999


// Add comments to explain what this function does. You're meant to use Google!
function combine2Words(word1, word2) {
//this function joins two words that have been entered as parameters

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

function concatenate(firstWord, secondWord, thirdWord) {
// Write the body of this function to concatenate three words together.
// Look at the test case below to understand what this function is expected to return.
//we could either return them with spaces between them like this ;

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 !

Comment thread mandatory/4-tax.js

function calculateSalesTax() {}
function calculateSalesTax(price) {
return price + ((20/100)*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.

I think this function should return only the tax .. without the price.

*/

function convertToUSD() {}
function convertToUSD(initialPrice) {

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


function convertToBRL() {}
function convertToBRL(toBrazilian) {
return Math.round(toBrazilian*5.7 - (toBrazilian*5.7)*(1/100)) + " BRL";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Totally correct .. could also be Math.round(1005.70.99)

@github-actions

Copy link
Copy Markdown

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

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