Skip to content

Cape Town |ITP-MAY-26|Enice Mutanda|Sprint 2| Coursework #1400

Open
Enice-Codes wants to merge 4 commits into
CodeYourFuture:mainfrom
Enice-Codes:coursework/sprint-2
Open

Cape Town |ITP-MAY-26|Enice Mutanda|Sprint 2| Coursework #1400
Enice-Codes wants to merge 4 commits into
CodeYourFuture:mainfrom
Enice-Codes:coursework/sprint-2

Conversation

@Enice-Codes

@Enice-Codes Enice-Codes commented Jun 25, 2026

Copy link
Copy Markdown

Self Check

  • 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

Answered questions to all excerises
completed code
checked code on node
Used Dev tools as per an excercise

@github-actions

This comment has been minimized.

5 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Enice-Codes Enice-Codes added 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 Jun 25, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 25, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Enice-Codes Enice-Codes 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. labels Jun 27, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 27, 2026
@Enice-Codes Enice-Codes added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 1, 2026
Comment on lines 11 to +22
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);

// =============> write your explanation here

// console.log prints out information it does not return any varable to its function.hence the syntax error.
// console.log cant read unprovided information.
// Finally, correct the code to fix the problem
// =============> write your new code here
function multiply (a,b){
if (a===10 && b===32){
let result =a * b ;
}
} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have you tested your implementation to see if it can return the product of its parameters?

// 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 touppersneakers (input){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you look up the naming conventions in JavaScript? In particular,

  • Variable and function names
  • Class and Types names
  • Named constants

Then, update the function name according to those conventions.

Comment on lines +18 to +21
function touppersneakers (input){
return input.trim().replace(/\s+/g, "_").touppercase();
}
console.log(touppersneakers("hello there"));//Hello There

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have you tested your implementation to see if it works as expected?

Comment on lines +10 to +19
function toSnakeCase(str) {
const pecestringwithouttrailingp = pencestring.substring(0,pencestring.length -1);
const padded penceNumberstring = pencestringWithoutTrailingP.padstart(3,"0");
const pounds = paddedpenceNumberString.substring(0, paddedpencenumberstring.length-2);
const pencr= paddedpencenumberstring.substring(paddedpencenumberstring.length -2)
.padEnd(2,"0");
return £${pounds}.${pence}`;
}
// test the function with different inputs
consloe.log(topounds("399p"), // £3.99

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have you tested this implementation?

function formatAs12HourClock(time) {
const hours = Number(time.slice(0, 2));
const minutes = time.slice(3, 5);
if (h)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is this?

Comment on lines 18 to 22
if (hours > 12) {
return `${hours - 12}:00 pm`;
return `${hours - 12}:${minutes} pm`;
}

return `${time} am`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The code looks correct.

Could you update the code so that the return values of formatAs12HourClock("01:23") and formatAs12HourClock("13:23") are formatted consistently?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 2, 2026
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. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants