JavaScript-Core1-Week1-Niamh Madden - #131
Conversation
Completed the exercises in the folder
Printed "Hello Everyone" to the console 3 times
|
|
||
| var nameLength = name.length; | ||
|
|
||
| console.log(nameLength) |
There was a problem hiding this comment.
well done on getting the length of the name, you missed part of the exercise where you concatenate the string and use the trim() method 🙂
|
|
||
| var percentageOfStudents = 15 /23 * 100; | ||
| var percentageOfMentors = 8/23*100; | ||
|
|
There was a problem hiding this comment.
nice, you could use the Math.round() function to round the results to whole numbers
| function shoutGreeting (name){ | ||
| name = name.toUpperCase(); | ||
| console.log(`Hello ${name}`); | ||
| } |
There was a problem hiding this comment.
the idea of this exercise was to have 2 separate functions, one that returns the name in uppercase and another that returns the greeting by calling the first function to get the name
| } | ||
|
|
||
| function introduceMe(name, age) | ||
| return "Hello, my name is " + name "and I am " age + "years old"; |
There was a problem hiding this comment.
there is still a syntax error on this line
| total = a + b; | ||
|
|
||
| return "The total is total"; | ||
| return `The total is $total`; |
|
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. |
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.mdin the root of this repositoryYour Details
Homework Details
Notes
What did you find easy?
What did you find hard?
What do you still not understand?
Any other notes?