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

London9 - Turing - Ying Xing - JavaScript-Core-1-Coursework-Week1 - #455

Open
LexiisYing wants to merge 6 commits into
CodeYourFuture:masterfrom
LexiisYing:master
Open

London9 - Turing - Ying Xing - JavaScript-Core-1-Coursework-Week1#455
LexiisYing wants to merge 6 commits into
CodeYourFuture:masterfrom
LexiisYing:master

Conversation

@LexiisYing

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: Ying Xing (Lexi)
  • Your City: London
  • Your Slack Name: Lexi

Homework Details

  • Module: JavaScript Core 1
  • Week: 1

Notes

  • What did you find easy?
    Syntax, Logic errors
  • What did you find hard?
    Function output
  • What do you still not understand?
    Need to practice more on function output
  • 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.

Looks good!
To push further, try running the tests in the /mandatory folder

@@ -1,3 +1,5 @@
// Start by creating a variable `greeting`

let greeting='Hello world'

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 works fine, but if the value of greeting will only be set once and not changed later, const is better than let

Comment thread exercises/J-functions/exercise2.js Outdated
@@ -1,7 +1,9 @@
function triple(number) {
// complete function here
return number*number*number

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 will cube the number, which isn't the same as multiplying by 3

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

got it, thanks!!

@@ -1,4 +1,9 @@
// Declare your function here
function createLongGreeting(name,age){
return `hello my name is ${name} and i'm ${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.

Great use of a template string


//The concat() method does not change the existing strings.

//The concat() method returns a new string.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

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