Skip to content

Manchester | 26-ITP-May | Abdu Hassen | Sprint 2 | structure and testing data #1435

Open
Abduhasen wants to merge 1 commit into
CodeYourFuture:mainfrom
Abduhasen:sprint_2_backlog
Open

Manchester | 26-ITP-May | Abdu Hassen | Sprint 2 | structure and testing data #1435
Abduhasen wants to merge 1 commit into
CodeYourFuture:mainfrom
Abduhasen:sprint_2_backlog

Conversation

@Abduhasen

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

1.interpreting of codes with explanation.
2.fixing errors.
3.writing a code depending on a given statement.
4.debugging of code.

Questions

N/A

@Abduhasen Abduhasen added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Jul 1, 2026
@Sambuxc Sambuxc added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 1, 2026
// =============> write your explanation here
// =============> write your explanation here: firstly the process start accepting that it is a function and takes
// the parameter to hold the place then it go through the function but by the 5th line
// the function return and the value will come out undefined

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

How does javascript see undefined?
What does this tell you about js that it returns undefined?

// Finally, correct the code to fix the problem
// =============> write your new code here
// =============> write your new code here: function getLastDigit(num) {
// return num.toString().slice(-1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What does -1 represent when passing into slice?

// Use the MDN string documentation to help you find a solution
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase

function toCapitalizedSnakeCase(str) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this capitalising each word or does it uppercase the whole word, because your function name tells me one thing but its return output gives me another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants