Glasgow | 26-ITP-May | Chan Yat Long | Sprint 1 | Coursework#1371
Glasgow | 26-ITP-May | Chan Yat Long | Sprint 1 | Coursework#1371Motorcycle-lab wants to merge 13 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d684300 to
fb10455
Compare
This comment has been minimized.
This comment has been minimized.
fb10455 to
60cb952
Compare
This comment has been minimized.
This comment has been minimized.
60cb952 to
ad96f8c
Compare
This comment has been minimized.
This comment has been minimized.
ad96f8c to
b5540b5
Compare
This comment has been minimized.
This comment has been minimized.
LonMcGregor
left a comment
There was a problem hiding this comment.
Good start with these tasks.
There are some where you need to finish the tasks,see my comments for hints
Have you done the tasks in part 3, "interpret"?
| count = count + 1; | ||
|
|
||
| // Line 1 is a variable declaration, creating the count variable with an initial value of 0 | ||
| // Describe what line 3 is doing, in particular focus on what = is doing |
There was a problem hiding this comment.
Did you see these comments here? Can you answer them?
There was a problem hiding this comment.
Yes the count wipes out the old value and update itself.
|
|
||
| const dir = ; | ||
| const ext = ; | ||
|
|
There was a problem hiding this comment.
Did you read the comments here about creating variables? Do you know what to do here?
There was a problem hiding this comment.
const dir = filePath.slice(0, lastSlashIndex);
console.log(dir);
const ext = filePath.slice(filePath.lastIndexOf(".") + 1);
console.log(ext);
| function X(num){ | ||
| const age = num +1; | ||
| return age;} | ||
| console.log(X(33)); |
There was a problem hiding this comment.
If you read the comment at the top of the file, it is about creating an age variable, not a function. Can you figure out the problem that happened with the original file, and explain how to fix the error?
There was a problem hiding this comment.
Yes I should define a variable. I should initialize age variable into 0, reassign the value by 1, and use console.log to print it out.
London | 25-ITP-May | Carol Owen | Sprint 1 | Alarm Clock
Fill in the template below - remove any sections that don't apply.
Complete the self checklist - replace each empty box in the checklist [ ] with a [x].
Add the label "Needs Review" and you will get review.
Respond to volunteer reviews until the volunteer marks it as "Complete".
Please note: if the PR template is not filled as described above, an automatic GitHub bot will give feedback in the "Conversation" tab of the pull request and not allow the "Needs Review" label to be added until it's fixed.
-->
Learners, PR Template
Self checklist
Changelist
I am updating my coursework.
Questions
My update of the coursework ,please help me evaluate it.